frysk.sys
Class ProcessIdentifier

java.lang.Object
  extended by frysk.sys.ProcessIdentifier
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
ProcessIdentifierDecorator

public abstract class ProcessIdentifier
extends Object
implements Comparable

Identifies a process.


Constructor Summary
ProcessIdentifier()
           
 
Method Summary
 void blockingDrain()
          Perform a blocking drain of all wait events from this process.
 void blockingWait(WaitBuilder waitBuilder)
          Perform a blocking wait for a single event from this process.
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 int hashCode()
           
abstract  int intValue()
           
 void kill()
          Send a fatal signal (SIGKILL) to this process.
 void tkill(Signal signal)
          Send a signal to THIS pid.
 String toString()
          Represent the ProcessIdentifier textually.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessIdentifier

public ProcessIdentifier()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

intValue

public abstract int intValue()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

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

toString

public String toString()
Represent the ProcessIdentifier textually. Return the PID as a number so that it can be used directly.

Overrides:
toString in class Object

kill

public void kill()
Send a fatal signal (SIGKILL) to this process.


tkill

public void tkill(Signal signal)
Send a signal to THIS pid.


blockingDrain

public void blockingDrain()
Perform a blocking drain of all wait events from this process. Only returns when the process has disappeared.


blockingWait

public void blockingWait(WaitBuilder waitBuilder)
Perform a blocking wait for a single event from this process.