Class HeartBeatSender

  • All Implemented Interfaces:
    java.lang.Runnable

    public class HeartBeatSender
    extends java.util.TimerTask
    Thread reponsible for sending out periodic HeartBeatMessages. The BitarchiveServer is closed down if any error occurs whilst sending heartbeats.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Method Detail

      • run

        public void run()
        This is the run method of the thread sending heartbeats. The BitarchiveServer is closed down if any error occurs.
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask
      • toString

        public java.lang.String toString()
        Retrieval of a string representation of this instance.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation of this instance.