|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.messaging.NodeInfo
Wraps the properties of a Node.
It identifies a Node uniquely on the network.
Such an instance could be wrapped in a packet and sent to a multicast group.
Other Nodes belonging to this group could then decide to join it or not.
Constructor Summary | |
NodeInfo()
Required for Externalization. |
|
NodeInfo(String aName,
InetAddress anAddess,
int aPort)
Creates a NodeInfo defining uniquely a node on a network. |
Method Summary | |
boolean |
equals(Object obj)
|
InetAddress |
getAddress()
Gets the listening address of the node providing this instance. |
String |
getName()
Gets the name of the node providing this instance. |
int |
getPort()
Gets the listening port of the node providing this instance. |
int |
hashCode()
|
static NodeInfo[] |
pop(NodeInfo[] aNodeInfo)
Pops the first element of the array and returns the resulting array. |
void |
readExternal(ObjectInput in)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NodeInfo()
public NodeInfo(String aName, InetAddress anAddess, int aPort)
aName
- Name of the node.anAddess
- Address that the node is listening on.aPort
- Listening port.Method Detail |
public static NodeInfo[] pop(NodeInfo[] aNodeInfo)
aNodeInfo
- Array whose first element is to be popped.
public InetAddress getAddress()
public String getName()
public int getPort()
public int hashCode()
public boolean equals(Object obj)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |