|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.grs.proxy.local.LocalReaderProxy
gr.uoa.di.madgik.grs.proxy.local.LocalStoreReaderProxy
public class LocalStoreReaderProxy
This proxy extends the LocalReaderProxy
capabilities by adding an additional logic layer
on top of the original extended base capabilities. This additional logic layer serves to contact the
IBufferStore
that can then create a locator capable of being managed by the underlying
LocalReaderProxy
instance.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface gr.uoa.di.madgik.grs.proxy.IProxy |
---|
IProxy.ProxyType |
Field Summary |
---|
Fields inherited from interface gr.uoa.di.madgik.grs.proxy.IProxy |
---|
ProxyScheme, ProxyStoreScheme |
Constructor Summary | |
---|---|
LocalStoreReaderProxy()
Creates a new instance |
Method Summary | |
---|---|
void |
fromLocator(java.net.URI locator)
Populates an instance of the IReaderProxy implementer with the information
provided through the specific locator URI |
IBuffer |
getBuffer()
After the proxy has been initialized, through this method, the IBuffer that
can be used by the reader to access the writer side IBuffer can be retrieved |
static boolean |
isOfType(java.net.URI locator)
Checks if the provided URI is of a type that can be managed by an instance of this class. |
Methods inherited from class gr.uoa.di.madgik.grs.proxy.local.LocalReaderProxy |
---|
overrideBufferCapacity |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalStoreReaderProxy()
Method Detail |
---|
public void fromLocator(java.net.URI locator) throws GRS2ProxyInvalidArgumentException, GRS2ProxyInvalidOperationException
IReaderProxy
implementer with the information
provided through the specific locator URI
This method parses the provided URI to retrieve the needed information. An example of the URI
this proxy can manage is grs2-proxy://localhost?key=13bc140f-3013-4ce1-83b4-4d57d46863b0#Local
This method parses the provided URI locator that is expected to be in the form of the following example
grs2-store-proxy://localhost?key=e064140f-4bcc-4c84-94c6-9420f8f31b05#LocalStore
. After the
parsing is completed, a BufferStoreReader
instance is created, and the BufferStoreReader.populate()
method is invoked. The created locator from this operation is then forwarded to the underlying
LocalReaderProxy
to take over any subsequent actions
fromLocator
in interface IReaderProxy
fromLocator
in class LocalReaderProxy
GRS2ProxyInvalidArgumentException
- If the provided locator is not of the expected type of the parsing procedure
does not provide the valid information needed
GRS2ProxyInvalidOperationException
- if there was a problem initializing the underlying LocalReaderProxy
LocalReaderProxy.fromLocator(java.net.URI)
public IBuffer getBuffer() throws GRS2ProxyInvalidOperationException
IBuffer
that
can be used by the reader to access the writer side IBuffer
can be retrieved
Retrieves the IBuffer
directly from the local GRSRegistry
. If no IBuffer
is found associated with the provided key, null is returned
This method should only be used after the initialization step of the fromLocator(URI)
has been completed. After this is done, any call to this method simple forwards the request to he underlying
LocalReaderProxy.getBuffer()
method
getBuffer
in interface IReaderProxy
getBuffer
in class LocalReaderProxy
IBuffer
that is serving the reader
GRS2ProxyInvalidOperationException
- if a call to this overriding method is done even after the
the store has been contacted and the underlying LocalReaderProxy
needs to be used.LocalReaderProxy.getBuffer()
public static boolean isOfType(java.net.URI locator)
grs2-store-proxy://localhost?key=e064140f-4bcc-4c84-94c6-9420f8f31b05#LocalStore
locator
- the locator URI that needs to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |