|
|||||||||
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.tcp.TCPChannelLocator
public class TCPChannelLocator
Defines a TCP proxy locator capable of identifying a channel wither within the same host or from different hosts
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface gr.uoa.di.madgik.commons.channel.proxy.IChannelLocator |
---|
IChannelLocator.LocatorType |
Constructor Summary | |
---|---|
TCPChannelLocator()
Instantiates a new tCP channel locator. |
|
TCPChannelLocator(java.lang.String HostName,
int Port)
Instantiates a new TCP 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 |
java.lang.String |
GetHostName()
Gets the host name. |
IChannelLocator.LocatorType |
GetLocatorType()
Retrieves the Locator Type of the proxy locator |
int |
GetPort()
Gets the port. |
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 TCPChannelLocator()
public TCPChannelLocator(java.lang.String HostName, int Port)
HostName
- the host namePort
- the portMethod Detail |
---|
public java.lang.String GetHostName()
public int GetPort()
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 |