|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.HeartbeatFile
Class HeartbeatFile defines a utility that generates a heartbeat // file that can be used to determine if the program is running.
Constructor Summary | |
HeartbeatFile()
Creates a thread heartbeat object. |
Method Summary | |
boolean |
addThread(com.isti.util.queue.NotifyThread threadObj)
Adds a mandatory thread for the heartbeat. |
boolean |
addThread(java.lang.Thread threadObj)
Adds a mandatory thread for the heartbeat. |
protected java.util.List |
createThreadList()
Creates the thread list. |
protected java.util.List |
getThreadList()
Gets the thread list. |
protected java.util.Iterator |
getThreadListIterator()
Gets the thread list iterator. |
protected java.lang.String |
getThreadName(java.lang.Object obj)
Determines if the thread name. |
protected boolean |
isThreadAlive(java.lang.Object obj)
Determines if the thread is alive. |
void |
setFilename(java.lang.String heartbeatFilename)
Sets the filename for the heartbeat file. |
void |
setIntervalMSecs(int intervalMSecs)
Sets the interval for the heartbeat file. |
void |
setLogObj(LogFile logObj)
Sets the logfile object. |
boolean |
start()
Starts the heartbeat thread. |
void |
terminate()
Terminates the heartbeat thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HeartbeatFile()
Method Detail |
public boolean addThread(com.isti.util.queue.NotifyThread threadObj)
threadObj
- the Thread object.
public boolean addThread(java.lang.Thread threadObj)
threadObj
- the Thread object.
protected java.lang.String getThreadName(java.lang.Object obj)
obj
- the thread object.
protected java.util.List createThreadList()
protected final java.util.List getThreadList()
protected java.util.Iterator getThreadListIterator()
protected boolean isThreadAlive(java.lang.Object obj)
obj
- the thread object.
public void setFilename(java.lang.String heartbeatFilename)
heartbeatFilename
- the filename for the heartbeat file.public void setIntervalMSecs(int intervalMSecs)
intervalMSecs
- the interval for the heartbeat file.public void setLogObj(LogFile logObj)
logObj
- the LogFile object to use for output or null for none.public boolean start()
public void terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |