public class Locators extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isGRS2Locator(URI locator) |
static URI |
localToHTTP(URI locator) |
static URI |
localToTCP(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. |
public static URI localToTCP(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 consumerIBuffer remotelyGRS2ProxyInvalidArgumentException - The supplied locator is malformed or not of the correct typeGRS2ProxyInvalidOperationException - The locator could not be constructed because a proxy operation has failedpublic static URI localToHTTP(URI locator) throws GRS2ProxyInvalidArgumentException, GRS2ProxyInvalidOperationException
public static boolean isGRS2Locator(URI locator)
Copyright © 2014. All Rights Reserved.