|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.grs.utils.Locators
public class Locators
Locator utilities
Method Summary | |
---|---|
static boolean |
isGRS2Locator(java.net.URI locator)
|
static java.net.URI |
localToHTTP(java.net.URI locator)
|
static java.net.URI |
localToTCP(java.net.URI locator)
Converts a local locator retrieved from a LocalWriterProxy to a TCP locator which can be used in order for a remote consumer to
access the records of the producer's local IBuffer . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.net.URI localToTCP(java.net.URI locator) throws GRS2ProxyInvalidArgumentException, GRS2ProxyInvalidOperationException
LocalWriterProxy
to a TCP locator which can be used in order for a remote consumer to
access the records of the producer's local IBuffer
. It can be used to make the contents of a local IBuffer
available to a
remote consumer, without the producer knowing that its records should be accessed in any other way other than locallyA new
TCPWriterProxy
and IMirror
are constructed internally, and the IMirror
is bound to the local IBuffer
in order
for the mirroring process to start, as if the consumer had created a TCPWriterProxy
in the first place.
The TCPConnectionManager
must have been initialized before using this method
locator
- The local locator, retrieved by the LocalWriterProxy
of the consumer
IBuffer
remotely
GRS2ProxyInvalidArgumentException
- The supplied locator is malformed or not of the correct type
GRS2ProxyInvalidOperationException
- The locator could not be constructed because a proxy operation has failedpublic static java.net.URI localToHTTP(java.net.URI locator) throws GRS2ProxyInvalidArgumentException, GRS2ProxyInvalidOperationException
GRS2ProxyInvalidArgumentException
GRS2ProxyInvalidOperationException
public static boolean isGRS2Locator(java.net.URI locator)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |