public class NoopAppRequest extends AppRequest
RequestPacket
. The main requirements of application requests
is that they must implement at least InterfaceRequest, and must
implement InterfaceReplicable, InterfaceReconfigurable, and
InterfceClientRequest in order to respectively support replication,
reconfiguration, and the ability to delegate client response
messaging to gigapaxos.AppRequest.PacketType, AppRequest.ResponseCodes
PACKET_TYPE, type
STOP
Constructor and Description |
---|
NoopAppRequest(org.json.JSONObject json) |
NoopAppRequest(java.lang.String name,
int epoch,
int id,
java.lang.String value,
IntegerPacketType type,
boolean stop)
Can define IntegerPacketType types here other than those defined in
AppRequest.
|
NoopAppRequest(java.lang.String name,
int id,
java.lang.String value,
IntegerPacketType type,
boolean stop) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntryReplica() |
static void |
main(java.lang.String[] args) |
void |
setEntryReplica(java.lang.String id) |
org.json.JSONObject |
toJSONObjectImpl() |
getClientAddress, getEpochNumber, getObliviousPaxosStopRequest, getRequestID, getRequestType, getResponse, getSenderAddress, getServiceName, getValue, isStop, needsCoordination, setEpoch, setNeedsCoordination, setResponse
couldBeJSON, couldBeJSON, couldBeJSON, couldBeJSONArray, couldBeJSONObject, getPacketType, putPacketType, putPacketType, toJSONObject, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSummary
getSummary
public NoopAppRequest(java.lang.String name, int epoch, int id, java.lang.String value, IntegerPacketType type, boolean stop)
name
- epoch
- id
- value
- type
- stop
- public NoopAppRequest(java.lang.String name, int id, java.lang.String value, IntegerPacketType type, boolean stop)
name
- id
- value
- type
- stop
- public NoopAppRequest(org.json.JSONObject json) throws org.json.JSONException
json
- org.json.JSONException
public org.json.JSONObject toJSONObjectImpl() throws org.json.JSONException
toJSONObjectImpl
in class AppRequest
org.json.JSONException
public void setEntryReplica(java.lang.String id)
id
- public java.lang.String getEntryReplica()
public static void main(java.lang.String[] args)