Class ExecuteStatusReply

java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoIPC
pt.unl.fct.di.novasys.babel.generic.ProtoReply

public class ExecuteStatusReply extends CommonExecuteReply
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.
  • Field Details

  • Constructor Details

    • ExecuteStatusReply

      public ExecuteStatusReply(CommonOperationType type)
      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

      public ExecuteStatusReply(CommonOperationStatus status, CommonOperationType type)
      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 executed
      collection - the collection where the operation was executed
      objectID - 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 executed
      collection - the collection where the operation was executed
      objectID - 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 executed
      collection - the collection where the operation was executed
      objectID - the identifier of the object
      message - 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 executed
      collection - the collection where the operation was executed
      objectID - the identifier of the object
      message - a message detailing the status.
      reqID - the request identifier associated with the reply.