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, serverPacketTypes
type
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, toString
flip, getInitiator, getKey, getSender, getType, setKey, setSender, setType, toJSONObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSummary
protected 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.JSONException
public org.json.JSONObject toJSONObjectImpl() throws org.json.JSONException
toJSONObjectImpl
in class ReconfigurationPacket<NodeIDType>
org.json.JSONException
public java.lang.String getServiceName()
getServiceName
in interface Request
public int getEpochNumber()
public java.lang.String getSummary()
Summarizable
getSummary
in interface Request
getSummary
in interface Summarizable
public IntegerPacketType getRequestType()
getRequestType
in interface Request