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.ResponseCodesReconfigurationPacket.PacketTypeunstringerepochNumber, serviceNameclientPacketTypes, HANDLER_METHOD_PREFIX, PACKET_TYPE, serverPacketTypestype| 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, setResponseMessagegetEpochNumber, 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, toString, wait, wait, waitgetServiceName, toBytes, toStringgetSummarypublic 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.JSONExceptionpublic ActiveReplicaError(org.json.JSONObject json,
Stringifiable<?> unstringer)
throws org.json.JSONException
json - unstringer - org.json.JSONExceptionpublic org.json.JSONObject toJSONObjectImpl()
throws org.json.JSONException
toJSONObjectImpl in class ClientReconfigurationPacketorg.json.JSONExceptionpublic long getRequestID()
public java.lang.String getSummary()
SummarizablegetSummary in interface RequestgetSummary in interface SummarizablegetSummary in class ClientReconfigurationPacket