NodeIDType - public class EpochFinalState<NodeIDType> extends BasicReconfigurationPacket<NodeIDType>
ReconfigurationPacket.PacketTypeepochNumber, serviceNameclientPacketTypes, HANDLER_METHOD_PREFIX, PACKET_TYPE, serverPacketTypestype| 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, getServiceNameassertPacketTypeChecks, assertPacketTypeChecks, assertPacketTypeChecks, assertPacketTypeChecks, concatenate, getMessage, getPacketType, getPacketTypeCanonicalClassName, getPacketTypeClass, getPacketTypeClassName, getReconfigurationPacket, getReconfigurationPacket, getReconfigurationPacketSuppressExceptions, getReconfigurationPacketSuppressExceptions, getReconfigurationPacketType, getReconfigurationPacketType, isReconfigurationPacket, putPacketType, toBytes, toStringflip, getInitiator, getKey, getSender, getType, setKey, setSender, setType, toJSONObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSummarypublic 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.JSONExceptionpublic java.lang.String getState()
public org.json.JSONObject toJSONObjectImpl()
throws org.json.JSONException
toJSONObjectImpl in class BasicReconfigurationPacket<NodeIDType>org.json.JSONExceptionpublic java.lang.String getSummary()
SummarizablegetSummary in interface RequestgetSummary in interface SummarizablegetSummary in class BasicReconfigurationPacket<NodeIDType>public static void main(java.lang.String[] args)