org.ourgrid.common.spec
Class PeerSpec

java.lang.Object
  extended by org.ourgrid.common.spec.PeerSpec
All Implemented Interfaces:
java.io.Serializable

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

This GuMPSpec identifies the container of informations about the remote GUMPS that the local instance of MyGrid will be able to use to require aditional processing power. Created on Jul 9, 2004

See Also:
Serialized Form

Constructor Summary
PeerSpec(java.lang.String name, int port)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getLabel()
           
 java.lang.String getName()
          Returns the gump name.
 int getPort()
          Returns the gump port.
 java.lang.String getURL()
          Returns the url that is like : rmi://MachineName:MachinePort/REMOTE_GUMP_OBJECT_NAME.
 int hashCode()
           
 void setLabel(java.lang.String label)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerSpec

public PeerSpec(java.lang.String name,
                int port)
Constructor.

Parameters:
name - The gump machine internet name.
port - The gump machine port.
Method Detail

getName

public java.lang.String getName()
Returns the gump name.

Returns:
The internet name of the machine

getPort

public int getPort()
Returns the gump port.

Returns:
The port.

getLabel

public java.lang.String getLabel()

getURL

public java.lang.String getURL()
Returns the url that is like : rmi://MachineName:MachinePort/REMOTE_GUMP_OBJECT_NAME.

Returns:
The URL of the gump.

setLabel

public void setLabel(java.lang.String label)

equals

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

hashCode

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