Package org.jppf.comm.recovery
Class HeartbeatMessage
java.lang.Object
org.jppf.comm.recovery.HeartbeatMessage
- All Implemented Interfaces:
Serializable
Instances of this class represent heartbeat data exchanged between a driver and a node, client or peer driver.
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHeartbeatMessage(long messageID) Initialize this message with the specified message id. -
Method Summary
Modifier and TypeMethodDescriptionlonggetUuid()voidsetResponse(HeartbeatMessage response) Set the response for request messagesvoidSet the remote peer's uuid.toString()
-
Constructor Details
-
HeartbeatMessage
public HeartbeatMessage(long messageID) Initialize this message with the specified message id.- Parameters:
messageID- the id of this message.
-
-
Method Details
-
getUuid
- Returns:
- the remote peer's uuid.
-
setUuid
Set the remote peer's uuid.- Parameters:
uuid- the uuid ot set.
-
getMessageID
public long getMessageID()- Returns:
- the message id.
-
getResponse
- Returns:
- the response, if any.
-
setResponse
Set the response for request messages- Parameters:
response- the response to set.
-
getProperties
- Returns:
- the additional properties sent in the message.
-
toString
-