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

public abstract class CommonExecuteReply extends CommonReply
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.
  • 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 reply
      type - type of the reply
      keySpace - keySpace identifier
      collection - collection identifier
      objectID - object identifier
      protoID - 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 reply
      type - type of the reply
      keySpace - keySpace identifier
      collection - collection identifier
      objectID - object identifier
      message - a message describing the status of the reply
      protoID - 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 reply
      type - type of the reply
      keySpace - keySpace identifier
      collection - collection identifier
      objectID - object identifier
      message - a message describing the status of the reply
      reqID - the request identifier
      protoID - the protocol identifier
  • Method Details

    • getOperationType

      public CommonOperationType getOperationType()
      Gets the operation type of the reply.
      Returns:
      the operation type.
    • getKeySpace

      public String getKeySpace()
      Gets the keyspace identifier.
      Returns:
      the keyspace identifier.
    • getCollection

      public String getCollection()
      Gets the collection identifier.
      Returns:
      the collection identifier
    • getObjectID

      public String getObjectID()
      Gets the object identifier.
      Returns:
      the object identifier.