edu.cmu.emulator.daemon
Class ProcessID
java.lang.Object
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.
nodeName
protected String nodeName
pID
protected int pID
mapID
protected String mapID
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.
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.