|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ispheres.shared.process.ProcessHandle
public abstract class ProcessHandle
This class acts as a handle to processes (tasks), it stores information about when a process was started how long it has been idle for (i.e. how long since a client has checked in on its progress).
| Constructor Summary | |
|---|---|
ProcessHandle(int h)
Constructor - This function creates a new process handle. |
|
| Method Summary | |
|---|---|
protected void |
accessHandle()
This function is used by implementing subclasses to access the process handle and set when the handle was last accessed. |
void |
close()
This function is used by nice clients to indicate that they have finished with the process and that it can be removed from the system. |
protected void |
complete()
This is used to flag a ProcessHandle as being completed. |
long |
getElapsedTime()
|
int |
getHandle()
|
long |
getIdleTime()
This function returns the time that this process handle has been idle, this is essentially the time since the process handle has been accessed. |
boolean |
isClosed()
|
boolean |
isCompleted()
|
abstract void |
run()
This function must be implemented by subclasses, it invokes the process (task) that needs to be performed. |
protected void |
startHandle()
A process may sit in a FutureTask waiting list before being actually performed This function should be called at the start of the execute block to initialise timers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessHandle(int h)
h - The int value to use for the unique id.| Method Detail |
|---|
protected final void accessHandle()
public final void close()
protected final void complete()
public final long getElapsedTime()
public final int getHandle()
public final long getIdleTime()
public final boolean isClosed()
public final boolean isCompleted()
public abstract void run()
run in interface java.lang.Runnableprotected final void startHandle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||