NodeIDType
- This "failure detection" packet is really a keep-alive, i.e., its
purpose is to tell the recipient that the sender is up.public class FailureDetectionPacket<NodeIDType> extends PaxosPacket
PaxosPacket.NodeIDKeys, PaxosPacket.PaxosPacketType
Modifier and Type | Field and Description |
---|---|
NodeIDType |
senderNodeID
Node ID of sender sending this keep-alive packet.
|
BYTEIFICATION, CHARSET, packetType, paxosID, SIZEOF_PAXOSPACKET_FIXED, version
PACKET_TYPE, type
Constructor and Description |
---|
FailureDetectionPacket(org.json.JSONObject json,
Stringifiable<NodeIDType> unstringer) |
FailureDetectionPacket(NodeIDType senderNodeID,
NodeIDType responderNodeID,
boolean status) |
Modifier and Type | Method and Description |
---|---|
java.net.InetSocketAddress |
getSender() |
protected java.lang.String |
getSummaryString() |
org.json.JSONObject |
toJSONObjectImpl() |
getPaxosID, getPaxosIDVersion, getPaxosPacket, getPaxosPacket, getPaxosPacketType, getPaxosPacketType, getSummary, getSummary, getType, getType, getVersion, isParseable, isRecovery, isRecovery, isStatic, markRecovered, putPaxosID, toBytes, toJSONObject, toJSONSmart, toJSONSmartImpl, toSingletonArray, toString
couldBeJSON, couldBeJSON, couldBeJSON, couldBeJSONArray, couldBeJSONObject, getPacketType, putPacketType, putPacketType
public final NodeIDType senderNodeID
public FailureDetectionPacket(NodeIDType senderNodeID, NodeIDType responderNodeID, boolean status)
public FailureDetectionPacket(org.json.JSONObject json, Stringifiable<NodeIDType> unstringer) throws org.json.JSONException
org.json.JSONException
public org.json.JSONObject toJSONObjectImpl() throws org.json.JSONException
toJSONObjectImpl
in class PaxosPacket
org.json.JSONException
public java.net.InetSocketAddress getSender()
protected java.lang.String getSummaryString()
getSummaryString
in class PaxosPacket