p2pMapReduce.networkModule
Interface NodeInfo

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
JxtaNodeInfo

public interface NodeInfo
extends java.io.Serializable

Contains all the basic information about a node


Method Summary
 int getFtpPort()
          The port on which the ftp server listen
 java.lang.String getID()
           
 java.lang.String getIpAddress()
          Ip address of node ftp server
 double getLoad()
          The current load of a node
 int getRole()
          Role of a node.
 boolean isAvailable()
           
 void setLoad(double load)
           
 void setRole(int role)
           
 

Method Detail

getID

java.lang.String getID()

getRole

int getRole()
Role of a node.

Returns:
One value between: Constants#MASTER , Constants#SLAVE , Constants#USER

getLoad

double getLoad()
The current load of a node

Returns:

setRole

void setRole(int role)

setLoad

void setLoad(double load)

getIpAddress

java.lang.String getIpAddress()
Ip address of node ftp server

Returns:

getFtpPort

int getFtpPort()
The port on which the ftp server listen

Returns:

isAvailable

boolean isAvailable()