Class CommonExecuteReply
java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoIPC
pt.unl.fct.di.novasys.babel.generic.ProtoReply
pt.unl.fct.di.novasys.babel.protocols.storage.replies.common.CommonReply
pt.unl.fct.di.novasys.babel.protocols.storage.replies.common.CommonExecuteReply
- Direct Known Subclasses:
ExecuteJSONReply,ExecutePayloadReply,ExecuteStatusReply,NotSupportedReply
An abstract class common to all execute replies issued by the storage layer.
Execute replies englobes all operations performed on the objects of the
storage layer, such as insertions, reads, deletes, etc.
It stores the operation type being issued by the reply (e.g., CREATE, UPDATE,
READ, etc.), as well as information about the keyspace, collection and
objectID where the request was issued.
This class is an extension of the CommonReply class, so it supports all of
its methods and variables.
-
Nested Class Summary
Nested classes/interfaces inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC
pt.unl.fct.di.novasys.babel.generic.ProtoIPC.Type -
Field Summary
Fields inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.replies.common.CommonReply
EMPTY_MSG -
Constructor Summary
ConstructorsConstructorDescriptionCommonExecuteReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, short protoID) Construct a CommonExecuteReply with a given status, operation type, as well as information about the keySpace, collection and objectID of the object that is being accessed.CommonExecuteReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message, short protoID) Construct a CommonExecuteReply with a given status, operation type, as well as information about the keySpace, collection and objectID of the object that is being accessed.CommonExecuteReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message, String reqID, short protoID) Construct a CommonExecuteReply with a given status, operation type, as well as information about the keySpace, collection and objectID of the object that is being accessed. -
Method Summary
Modifier and TypeMethodDescriptionGets the collection identifier.Gets the keyspace identifier.Gets the object identifier.Gets the operation type of the reply.Methods inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.replies.common.CommonReply
getMessage, getReqID, getStatus, hasReqIDMethods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoReply
getIdMethods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC
getType
-
Constructor Details
-
CommonExecuteReply
public CommonExecuteReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, short protoID) Construct a CommonExecuteReply with a given status, operation type, as well as information about the keySpace, collection and objectID of the object that is being accessed.- Parameters:
status- status of the replytype- type of the replykeySpace- keySpace identifiercollection- collection identifierobjectID- object identifierprotoID- the protocol identifier
-
CommonExecuteReply
public CommonExecuteReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message, short protoID) Construct a CommonExecuteReply with a given status, operation type, as well as information about the keySpace, collection and objectID of the object that is being accessed. Additionally, this constructor receives a message describing the status code passed as argument.- Parameters:
status- status of the replytype- type of the replykeySpace- keySpace identifiercollection- collection identifierobjectID- object identifiermessage- a message describing the status of the replyprotoID- the protocol identifier
-
CommonExecuteReply
public CommonExecuteReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message, String reqID, short protoID) Construct a CommonExecuteReply with a given status, operation type, as well as information about the keySpace, collection and objectID of the object that is being accessed. Additionally, this constructor receives a message describing the status code passed as argument, as well as the request identifier associated with the reply.- Parameters:
status- status of the replytype- type of the replykeySpace- keySpace identifiercollection- collection identifierobjectID- object identifiermessage- a message describing the status of the replyreqID- the request identifierprotoID- the protocol identifier
-
-
Method Details
-
getOperationType
Gets the operation type of the reply.- Returns:
- the operation type.
-
getKeySpace
Gets the keyspace identifier.- Returns:
- the keyspace identifier.
-
getCollection
Gets the collection identifier.- Returns:
- the collection identifier
-
getObjectID
Gets the object identifier.- Returns:
- the object identifier.
-