public class LocalChannelLocator extends Object implements IChannelLocator
IChannelLocator.LocatorType| Constructor and Description |
|---|
LocalChannelLocator()
Instantiates a new local channel locator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Decode(byte[] payload)
Unmarshals a serialization as returned by the
IChannelLocator.Encode() method |
byte[] |
Encode()
Marshals the locator in a serialized form that can then be passed to
IChannelLocator.Decode(byte[])
to create a new instance of the locator. |
boolean |
equals(Object o) |
void |
FromURI(URI locator)
Unmarshals a serialization as returned by the
IChannelLocator#ToXML() method |
IChannelLocator.LocatorType |
GetLocatorType()
Retrieves the Locator Type of the proxy locator
|
ChannelRegistryKey |
GetRegistryKey()
Retrieves the registry UUID the channel that this locator identifies has been assigned
|
int |
hashCode() |
void |
SetRegistryKey(ChannelRegistryKey RegistryKey)
Sets the registry UUID the channel that this locator identifies has been assigned
|
String |
toString() |
URI |
ToURI()
Marshals the locator in a serialized human readable XML form that can then be passed to
IChannelLocator#FromXML(String)
to create a new instance of the locator. |
public LocalChannelLocator()
public void Decode(byte[] payload)
throws Exception
IChannelLocatorIChannelLocator.Encode() methodDecode in interface IChannelLocatorpayload - The locator serializationException - The deserialization could not be performedpublic byte[] Encode()
throws Exception
IChannelLocatorIChannelLocator.Decode(byte[])
to create a new instance of the locator.Encode in interface IChannelLocatorException - The serialization could not be performedpublic IChannelLocator.LocatorType GetLocatorType()
IChannelLocatorGetLocatorType in interface IChannelLocatorpublic ChannelRegistryKey GetRegistryKey()
IChannelLocatorGetRegistryKey in interface IChannelLocatorpublic void SetRegistryKey(ChannelRegistryKey RegistryKey)
IChannelLocatorSetRegistryKey in interface IChannelLocatorRegistryKey - The registry UUID of the identified channelpublic URI ToURI() throws Exception
IChannelLocatorIChannelLocator#FromXML(String)
to create a new instance of the locator.ToURI in interface IChannelLocatorException - The serialization could not be performedpublic void FromURI(URI locator) throws Exception
IChannelLocatorIChannelLocator#ToXML() methodFromURI in interface IChannelLocatorException - The deserialization could not be performedCopyright © 2018. All Rights Reserved.