frysk.testbed
Class PidCounter
java.lang.Object
frysk.testbed.PidCounter
- All Implemented Interfaces:
- Observer
public class PidCounter
- extends Object
- implements Observer
Watch for events involving the specified PID process; count the
number of events seen.
Constructor Summary |
PidCounter(int pid)
Create a pid counter bound to PID. |
PidCounter(int pid,
Observable observable)
Create a pid counter bound to PID, and attached to
observable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
what
public final List what
pid
private int pid
count
public int count
PidCounter
public PidCounter(int pid)
- Create a pid counter bound to PID.
PidCounter
public PidCounter(int pid,
Observable observable)
- Create a pid counter bound to PID, and attached to
observable.
update
public void update(Observable o,
Object obj)
- Specified by:
update
in interface Observer