Class HeartBeatMessage

  • All Implemented Interfaces:
    Serializable

    public class HeartBeatMessage
    extends ArchiveMessage
    Simple class representing a HeartBeat message from a bit archive application. A heartbeat has an applicationId, that identifies the application that generated the heartbeat.

    TODO This class should probably contain more status data from bit archive application later.

    See Also:
    Serialized Form
    • Constructor Detail

      • HeartBeatMessage

        public HeartBeatMessage​(ChannelID inReceiver,
                                String applicationId)
        Creates a heartbeat message. The time of the heartbeat is set to the creation of this object.
        Parameters:
        inReceiver - ChannelID for the recipient of this message.
        applicationId - - id of the application that sent the heartbeat
    • Method Detail

      • getTimestamp

        public long getTimestamp()
        Returns:
        time of heartbeat occurrence.
      • getBitarchiveID

        public String getBitarchiveID()
        Returns:
        id of the application that generated the heartbeat.
      • toString

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