public class HeartBeatMessage extends ArchiveMessage
TODO This class should probably contain more status data from bit archive application later.
replyOfId
Constructor and Description |
---|
HeartBeatMessage(ChannelID inReceiver,
String applicationId)
Creates a heartbeat message.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
String |
getBitarchiveID() |
long |
getTimestamp() |
String |
toString()
Retrieval of a string representation of this instance.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk
public HeartBeatMessage(ChannelID inReceiver, String applicationId)
inReceiver
- ChannelID for the recipient of this message.applicationId
- - id of the application that sent the heartbeatpublic long getTimestamp()
public String getBitarchiveID()
public String toString()
toString
in class NetarkivetMessage
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.