public class ActiveReplicaError extends ClientReconfigurationPacket
ClientReconfigurationPacket.ResponseCodes.ACTIVE_REPLICA_EXCEPTION
.
This class is also (ab-)used to report to the app client that the
name itself does not exist; if so, the corresponding respose code is
ClientReconfigurationPacket.ResponseCodes.NONEXISTENT_NAME_ERROR
.ClientReconfigurationPacket.ResponseCodes
ReconfigurationPacket.PacketType
unstringer
epochNumber, serviceName
clientPacketTypes, HANDLER_METHOD_PREFIX, PACKET_TYPE, serverPacketTypes
type
Constructor and Description |
---|
ActiveReplicaError(java.net.InetSocketAddress initiator,
java.lang.String name,
long requestID) |
ActiveReplicaError(org.json.JSONObject json) |
ActiveReplicaError(org.json.JSONObject json,
Stringifiable<?> unstringer) |
ActiveReplicaError(java.lang.String name,
long requestID,
ClientReconfigurationPacket crp) |
Modifier and Type | Method and Description |
---|---|
long |
getRequestID() |
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() |
getCreateTime, getCreator, getForwader, getForwardee, getHashRCs, getMyReceiver, getRequestType, getResponseCode, getResponseMessage, isFailed, isForwardable, isForwarded, isRecursiveRedirectEnabled, isRedirectedResponse, isRequest, makeResponse, setFailed, setFailed, setForwader, setForwardee, setHashRCs, setRecursiveRedirect, setResponseMessage
getEpochNumber, 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, toString, wait, wait, wait
getServiceName, toBytes, toString
getSummary
public ActiveReplicaError(java.net.InetSocketAddress initiator, java.lang.String name, long requestID)
initiator
- name
- requestID
- public ActiveReplicaError(java.lang.String name, long requestID, ClientReconfigurationPacket crp)
name
- requestID
- crp
- public ActiveReplicaError(org.json.JSONObject json) throws org.json.JSONException
json
- org.json.JSONException
public ActiveReplicaError(org.json.JSONObject json, Stringifiable<?> unstringer) throws org.json.JSONException
json
- unstringer
- org.json.JSONException
public org.json.JSONObject toJSONObjectImpl() throws org.json.JSONException
toJSONObjectImpl
in class ClientReconfigurationPacket
org.json.JSONException
public long getRequestID()
public java.lang.String getSummary()
Summarizable
getSummary
in interface Request
getSummary
in interface Summarizable
getSummary
in class ClientReconfigurationPacket