NodeIDType
- public class EpochFinalState<NodeIDType> extends BasicReconfigurationPacket<NodeIDType>
ReconfigurationPacket.PacketType
epochNumber, serviceName
clientPacketTypes, HANDLER_METHOD_PREFIX, PACKET_TYPE, serverPacketTypes
type
Constructor and Description |
---|
EpochFinalState(org.json.JSONObject json,
Stringifiable<NodeIDType> unstringer) |
EpochFinalState(NodeIDType initiator,
java.lang.String name,
int epochNumber,
java.lang.String state,
NodeIDType sender) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getState() |
java.lang.String |
getSummary()
Implementations are encouraged to return an inline created new Object()
whose toString() method will return the actual String instead of just
returning the String directly.
|
static void |
main(java.lang.String[] args) |
org.json.JSONObject |
toJSONObjectImpl() |
getEpochNumber, getRequestType, getServiceName
assertPacketTypeChecks, assertPacketTypeChecks, assertPacketTypeChecks, assertPacketTypeChecks, concatenate, getMessage, getPacketType, getPacketTypeCanonicalClassName, getPacketTypeClass, getPacketTypeClassName, getReconfigurationPacket, getReconfigurationPacket, getReconfigurationPacketSuppressExceptions, getReconfigurationPacketSuppressExceptions, getReconfigurationPacketType, getReconfigurationPacketType, isReconfigurationPacket, putPacketType, toBytes, toString
flip, getInitiator, getKey, getSender, getType, setKey, setSender, setType, toJSONObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSummary
public EpochFinalState(NodeIDType initiator, java.lang.String name, int epochNumber, java.lang.String state, NodeIDType sender)
initiator
- name
- epochNumber
- state
- sender
- public EpochFinalState(org.json.JSONObject json, Stringifiable<NodeIDType> unstringer) throws org.json.JSONException
json
- unstringer
- org.json.JSONException
public java.lang.String getState()
public org.json.JSONObject toJSONObjectImpl() throws org.json.JSONException
toJSONObjectImpl
in class BasicReconfigurationPacket<NodeIDType>
org.json.JSONException
public java.lang.String getSummary()
Summarizable
getSummary
in interface Request
getSummary
in interface Summarizable
getSummary
in class BasicReconfigurationPacket<NodeIDType>
public static void main(java.lang.String[] args)