public class HeartbeatFile
extends java.lang.Object
Constructor and Description |
---|
HeartbeatFile()
Creates a thread heartbeat object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public HeartbeatFile()
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()