edu.cmu.emulator.daemon
Class ProcessID

java.lang.Object
  extended by edu.cmu.emulator.daemon.ProcessID

public class ProcessID
extends Object

Holds information about the process started on remote nodes through the DaemonCommunicator. Each ProcessID object represents a unique process. It is represented as a tuple of the nodeName and the ID of the process on that node.


Field Summary
protected  String mapID
           
protected  String nodeName
           
protected  int pID
           
 
Constructor Summary
ProcessID()
           
ProcessID(String nodeName, int pID)
          Constructor.
 
Method Summary
 boolean equals(Object other)
           
 String getMapID()
           
 String getNodeName()
          Returns the name of the remote node on which the process is running.
 int getPID()
          Returns the ID of the process on the remote node.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeName

protected String nodeName

pID

protected int pID

mapID

protected String mapID
Constructor Detail

ProcessID

public ProcessID()

ProcessID

public ProcessID(String nodeName,
                 int pID)
Constructor. Creates a new ProcessID object.

Parameters:
nodeName - The name of the remote node on which the process was started.
pID - The ID# of the process on that machine.
Method Detail

getPID

public int getPID()
Returns the ID of the process on the remote node.


getNodeName

public String getNodeName()
Returns the name of the remote node on which the process is running.


equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getMapID

public String getMapID()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.