public class LocalStoreWriterProxy extends Object implements IProxy
IProxy interface, it does not
implement, as the name suggests, the IWriterProxy interface. The reason for this is that
it is meant to be used for a special case of IBuffer publishing which is through the
buffer store utility provided. This proxy class can be used to create a locator URI pointing to
a stored IBuffer that contains all the Records available through the provided
URI locators.IProxy.ProxyTypeProxyScheme, ProxyStoreScheme| Constructor and Description |
|---|
LocalStoreWriterProxy() |
| Modifier and Type | Method and Description |
|---|---|
static URI |
store(URI[] locators,
IBufferStore.MultiplexType multiplex,
long timeout,
TimeUnit unit)
This method instantiates an
IBufferStore through the BufferStoreFactory, sets the
respective information provided, initializes the IBufferStore, registers the new store
and creates a locator URI that can be used to access the IBufferStore. |
public static URI store(URI[] locators, IBufferStore.MultiplexType multiplex, long timeout, TimeUnit unit) throws GRS2BufferStoreException, GRS2ProxyInvalidArgumentException
IBufferStore through the BufferStoreFactory, sets the
respective information provided, initializes the IBufferStore, registers the new store
and creates a locator URI that can be used to access the IBufferStore. The created locator
is of the following type grs2-store-proxy://localhost?key=e064140f-4bcc-4c84-94c6-9420f8f31b05#LocalStore
and uses the scheme defined in IProxy.ProxyStoreSchemelocators - The locators forwarded to the IBufferStore.setLocators(URI[])multiplex - The multiplex type forwarded to IBufferStore.setMultiplexType(gr.uoa.di.madgik.grs.store.buffer.IBufferStore.MultiplexType)timeout - The timeout forwarded to IBufferStore.setReaderTimeout(long)unit - The timeout time unit forwarded to IBufferStore.setReaderTimeoutTimeUnit(TimeUnit)IBufferStore serving the new IBufferGRS2BufferStoreException - the IBufferStore could not be initializedGRS2ProxyInvalidArgumentException - the locator URI could not be createdCopyright © 2014. All Rights Reserved.