|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.TimerTask dk.netarkivet.archive.bitarchive.distribute.HeartBeatSender
public class HeartBeatSender
Thread reponsible for sending out periodic HeartBeatMessages. The BitarchiveServer is closed down if any error occurs whilst sending heartbeats.
Constructor Summary | |
---|---|
HeartBeatSender(ChannelID inReceiver,
BitarchiveServer inBaServer)
Constructs a HearBeatSender that sends heartbeats. |
Method Summary | |
---|---|
void |
run()
This is the run method of the thread sending heartbeats. |
java.lang.String |
toString()
Retrieval of a string representation of this instance. |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HeartBeatSender(ChannelID inReceiver, BitarchiveServer inBaServer) throws ArgumentNotValid, IOFailure
inReceiver
- - the receiver to receive the heartbeatsinBaServer
- - the BitarchiveServer of this HeartBeatSender
ArgumentNotValid
- - if in_baServer is null
IOFailure
- - if getting an JMSConnection instance failsMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |