Class NotSupportedReply
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.NotSupportedReply
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.
-
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
ConstructorsConstructorDescriptionNotSupportedReply(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.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.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.NotSupportedReply(CommonOperationType type, String keySpace, String collection, String objectID) Creates a not supported 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
-
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 executedcollection- the collection where the operation was executedobjectID- 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 executedcollection- the collection where the operation was executedobjectID- 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 executedcollection- the collection where the operation was executedobjectID- the identifier of the objectmessage- 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 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.
-