|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.commons.channel.proxy.local.LocalChannelLocator
public class LocalChannelLocator
Defines a local proxy locator capable of identifying a channel in the same address space as the one it was created in
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface gr.uoa.di.madgik.commons.channel.proxy.IChannelLocator |
---|
IChannelLocator.LocatorType |
Constructor Summary | |
---|---|
LocalChannelLocator()
Instantiates a new local channel locator. |
Method Summary | |
---|---|
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(java.lang.Object o)
|
void |
FromURI(java.net.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 |
java.lang.String |
toString()
|
java.net.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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalChannelLocator()
Method Detail |
---|
public void Decode(byte[] payload) throws java.lang.Exception
IChannelLocator
IChannelLocator.Encode()
method
Decode
in interface IChannelLocator
payload
- The locator serialization
java.lang.Exception
- The deserialization could not be performedpublic byte[] Encode() throws java.lang.Exception
IChannelLocator
IChannelLocator.Decode(byte[])
to create a new instance of the locator.
Encode
in interface IChannelLocator
java.lang.Exception
- The serialization could not be performedpublic IChannelLocator.LocatorType GetLocatorType()
IChannelLocator
GetLocatorType
in interface IChannelLocator
public ChannelRegistryKey GetRegistryKey()
IChannelLocator
GetRegistryKey
in interface IChannelLocator
public void SetRegistryKey(ChannelRegistryKey RegistryKey)
IChannelLocator
SetRegistryKey
in interface IChannelLocator
RegistryKey
- The registry UUID of the identified channelpublic java.net.URI ToURI() throws java.lang.Exception
IChannelLocator
IChannelLocator#FromXML(String)
to create a new instance of the locator.
ToURI
in interface IChannelLocator
java.lang.Exception
- The serialization could not be performedpublic void FromURI(java.net.URI locator) throws java.lang.Exception
IChannelLocator
IChannelLocator#ToXML()
method
FromURI
in interface IChannelLocator
java.lang.Exception
- The deserialization could not be performedpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |