|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.actiond.Executor.DatedProc
This class is designed to encapsulated a process and its start time. The start time is based upon the system clock and the runtime is the difference between the current time and the started time.
Field Summary | |
private java.lang.String |
m_cmd
The executable running |
private java.lang.Process |
m_proc
The process returned from the Runtime
instance. |
private long |
m_started
The time the process was started. |
Constructor Summary | |
(package private) |
Executor.DatedProc(java.lang.String cmd,
java.lang.Process p)
Constructs a new dated process. |
Method Summary | |
(package private) java.lang.Process |
getProcess()
Returns the encapsulated process. |
(package private) long |
getRunTime()
Returns the current runtime of the process. |
java.lang.String |
toString()
Returns the command being run by the dated process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final java.lang.String m_cmd
private final java.lang.Process m_proc
Runtime
instance.
private final long m_started
Constructor Detail |
Executor.DatedProc(java.lang.String cmd, java.lang.Process p)
cmd
- The command used to start the process.p
- The running process.Method Detail |
java.lang.Process getProcess()
long getRunTime()
public java.lang.String toString()
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |