org.ourgrid.common.id
Class GumID

java.lang.Object
  extended by org.ourgrid.common.id.GumID
All Implemented Interfaces:
java.io.Serializable

public class GumID
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
GumID(GumSpec gumSpec)
           
GumID(java.lang.String gumName, java.lang.String gumPort, java.lang.String peerName, java.lang.String peerPort)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getGumName()
           
 java.lang.String getGumPort()
          Gets the port of this Gum.
 java.lang.String getPeerName()
          Gets the peer name that have this Gum.
 java.lang.String getPeerPort()
          Gets the peer port of the peer that have this Gum.
 java.lang.String getUrl()
          Assembles a rmi url for this gum
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GumID

public GumID(java.lang.String gumName,
             java.lang.String gumPort,
             java.lang.String peerName,
             java.lang.String peerPort)

GumID

public GumID(GumSpec gumSpec)
Method Detail

getGumName

public java.lang.String getGumName()

getGumPort

public java.lang.String getGumPort()
Gets the port of this Gum.

Returns:
The port of this Gum.

getPeerName

public java.lang.String getPeerName()
Gets the peer name that have this Gum.

Returns:
The peer name that have this Gum.

getUrl

public java.lang.String getUrl()
Assembles a rmi url for this gum


getPeerPort

public java.lang.String getPeerPort()
Gets the peer port of the peer that have this Gum.

Returns:
The peer port of the peer that have this Gum.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object