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

public class NotSupportedReply extends CommonExecuteReply
A reply of an operation not supported by the storage layer. It stores the status of the operation, it's type, and an optional message containing the details of the status.
  • Field Details

  • Constructor Details

    • NotSupportedReply

      public NotSupportedReply(CommonOperationType type, String keySpace, String collection, String objectID)
      Creates a not supported 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
    • NotSupportedReply

      public NotSupportedReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID)
      Creates a not supported 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
    • NotSupportedReply

      public NotSupportedReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message)
      Creates a not supported 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.
    • NotSupportedReply

      public NotSupportedReply(CommonOperationStatus status, CommonOperationType type, String keySpace, String collection, String objectID, String message, String reqID)
      Creates a not supported 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.