Class ExecuteStatusReply
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
pt.unl.fct.di.novasys.babel.protocols.storage.replies.ExecuteStatusReply
A reply of an operation that contains only the status of an operation. This
could be used in cases that only a status is expected from the storage layer
(i.e., OK or ERROR). It stores information about the status of the operation
as well as the type of operation committed.
-
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
FieldsFields inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.replies.common.CommonReply
EMPTY_MSG -
Constructor Summary
ConstructorsConstructorDescriptionExecuteStatusReply(CommonOperationStatus status, CommonOperationType type) Creates a execute status reply, with the type of operation issued on the request.ExecuteStatusReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID) Creates a execute status reply, with the type of operation issued on the request, as well as the status of the operation.ExecuteStatusReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message) Creates a execute status reply, with the type of operation issued on the request, as well as the status of the operation.ExecuteStatusReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message, String reqID) Creates a execute status reply, with the type of operation issued on the request, as well as the status of the operation.Creates a execute status reply, with the type of operation issued on the request.ExecuteStatusReply(CommonOperationType type, String keySpace, String collection, String objectID) Creates a execute status reply, with the type of operation issued on the request. -
Method Summary
Methods inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.replies.common.CommonExecuteReply
getCollection, getKeySpace, getObjectID, getOperationTypeMethods 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
-
Field Details
-
REPLY_ID
public static final short REPLY_ID- See Also:
-
-
Constructor Details
-
ExecuteStatusReply
Creates a execute status reply, with the type of operation issued on the request. Since a status is not passed, the class assumes the default OK. No information about the keySpace or collection is passed.- Parameters:
type- the type of operation issued.
-
ExecuteStatusReply
Creates a execute status reply, with the type of operation issued on the request. Since a status is not passed, the class assumes the default OK. No information about the keySpace or collection is passed.- Parameters:
status- the status of the operation.type- the type of operation issued.
-
ExecuteStatusReply
public ExecuteStatusReply(CommonOperationType type, String keySpace, String collection, String objectID) Creates a execute status reply, with the type of operation issued on the request. Since a status is not passed, the class assumes the default OK.- Parameters:
type- the type of operation issued.keySpace- the keySpace where the operation was executedcollection- the collection where the operation was executedobjectID- the identifier of the object
-
ExecuteStatusReply
public ExecuteStatusReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID) Creates a execute status reply, with the type of operation issued on the request, as well as the status of the operation.- Parameters:
status- the status of the operation.type- the type of operation issued.keySpace- the keySpace where the operation was executedcollection- the collection where the operation was executedobjectID- the identifier of the object
-
ExecuteStatusReply
public ExecuteStatusReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message) Creates a execute status reply, with the type of operation issued on the request, as well as the status of the operation. The message should contain details about the status passed.- Parameters:
status- the status of the operation.type- the type of operation issued.keySpace- the keySpace where the operation was executedcollection- the collection where the operation was executedobjectID- the identifier of the objectmessage- a message detailing the status.
-
ExecuteStatusReply
public ExecuteStatusReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message, String reqID) Creates a execute status reply, with the type of operation issued on the request, as well as the status of the operation. The message should contain details about the status passed. Additionally, the reply also stores the request identifier associated with the reply.- Parameters:
status- the status of the operation.type- the type of operation issued.keySpace- the keySpace where the operation was executedcollection- the collection where the operation was executedobjectID- the identifier of the objectmessage- a message detailing the status.reqID- the request identifier associated with the reply.
-