NodeIDType - public abstract class BasicReconfigurationPacket<NodeIDType> extends ReconfigurationPacket<NodeIDType> implements Request
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicReconfigurationPacket.Keys |
ReconfigurationPacket.PacketType| Modifier and Type | Field and Description |
|---|---|
protected int |
epochNumber |
protected java.lang.String |
serviceName |
clientPacketTypes, HANDLER_METHOD_PREFIX, PACKET_TYPE, serverPacketTypestype| Constructor and Description |
|---|
BasicReconfigurationPacket(org.json.JSONObject json,
Stringifiable<NodeIDType> unstringer) |
BasicReconfigurationPacket(NodeIDType initiator,
ReconfigurationPacket.PacketType t,
java.lang.String name,
int epochNumber) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEpochNumber() |
IntegerPacketType |
getRequestType() |
java.lang.String |
getServiceName() |
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.
|
org.json.JSONObject |
toJSONObjectImpl() |
assertPacketTypeChecks, 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, toString, wait, wait, waitgetSummaryprotected final java.lang.String serviceName
protected final int epochNumber
public BasicReconfigurationPacket(NodeIDType initiator, ReconfigurationPacket.PacketType t, java.lang.String name, int epochNumber)
initiator - t - name - epochNumber - public BasicReconfigurationPacket(org.json.JSONObject json,
Stringifiable<NodeIDType> unstringer)
throws org.json.JSONException
json - unstringer - org.json.JSONExceptionpublic org.json.JSONObject toJSONObjectImpl()
throws org.json.JSONException
toJSONObjectImpl in class ReconfigurationPacket<NodeIDType>org.json.JSONExceptionpublic java.lang.String getServiceName()
getServiceName in interface Requestpublic int getEpochNumber()
public java.lang.String getSummary()
SummarizablegetSummary in interface RequestgetSummary in interface Summarizablepublic IntegerPacketType getRequestType()
getRequestType in interface Request