p2pMapReduce.impl.networkModule.jxta
Class JxtaNodeInfo

java.lang.Object
  extended by p2pMapReduce.impl.networkModule.jxta.JxtaNodeInfo
All Implemented Interfaces:
java.io.Serializable, NodeInfo

public class JxtaNodeInfo
extends java.lang.Object
implements NodeInfo

See Also:
Serialized Form

Constructor Summary
JxtaNodeInfo(NodeAdvertisement nodeADV)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getFtpPort()
          The port on which the ftp server listen
 java.lang.String getID()
          PeerID
 java.lang.String getIpAddress()
          Ip address of node ftp server
 double getLoad()
          The current load of a node
 NodeAdvertisement getNodeADV()
           
 int getRole()
          Role of a node.
 long getVersion()
           
 int hashCode()
           
 boolean isAvailable()
           
 void setLoad(double load)
           
 void setNodeADV(NodeAdvertisement nodeADV)
           
 void setRole(int role)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JxtaNodeInfo

public JxtaNodeInfo(NodeAdvertisement nodeADV)
Method Detail

getID

public java.lang.String getID()
PeerID

Specified by:
getID in interface NodeInfo
Returns:

getRole

public int getRole()
Description copied from interface: NodeInfo
Role of a node.

Specified by:
getRole in interface NodeInfo
Returns:
One value between: Constants#MASTER , Constants#SLAVE , Constants#USER

setRole

public void setRole(int role)
Specified by:
setRole in interface NodeInfo

setLoad

public void setLoad(double load)
Specified by:
setLoad in interface NodeInfo

getLoad

public double getLoad()
Description copied from interface: NodeInfo
The current load of a node

Specified by:
getLoad in interface NodeInfo
Returns:

isAvailable

public boolean isAvailable()
Specified by:
isAvailable in interface NodeInfo

getIpAddress

public java.lang.String getIpAddress()
Description copied from interface: NodeInfo
Ip address of node ftp server

Specified by:
getIpAddress in interface NodeInfo
Returns:

getFtpPort

public int getFtpPort()
Description copied from interface: NodeInfo
The port on which the ftp server listen

Specified by:
getFtpPort in interface NodeInfo
Returns:

setNodeADV

public void setNodeADV(NodeAdvertisement nodeADV)

getNodeADV

public NodeAdvertisement getNodeADV()

getVersion

public long getVersion()

equals

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

hashCode

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

toString

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