|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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 in_receiver,
BitarchiveServer in_baServer)
Constructs a HearBeatSender that sends heartbeats. |
Method Summary | |
---|---|
void |
run()
This is the run method of the thread sending heartbeats. |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HeartBeatSender(ChannelID in_receiver, BitarchiveServer in_baServer) throws ArgumentNotValid, IOFailure
in_receiver
- - the receiver to receive the heartbeatsin_baServer
- - 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |