Class DeleteCollectionReply
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.CreateCollectionReply
pt.unl.fct.di.novasys.babel.protocols.storage.replies.DeleteCollectionReply
A reply issued by the deletion of a collection in a given keySpace. The reply
contains the identifers of the collection and the respective keySpace, as
well information about the status of the operation issued in the
corresponding request, as well as an optional message detailing the result.
-
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
ConstructorsConstructorDescriptionDeleteCollectionReply(String keySpace, String collectionID, CommonOperationStatus status) Creates a delete key space reply with a given status, as well as the keySpace and collection identifier.DeleteCollectionReply(String keySpace, String collectionID, CommonOperationStatus status, String message) Creates a delete key space reply with a given status, as well as the keySpace and collection identifier.DeleteCollectionReply(String keySpace, String collectionID, CommonOperationStatus status, String message, String reqID) Creates a delete key space reply with a given status, as well as the keySpace and collection identifier.Creates a delete key space reply with a given status.DeleteCollectionReply(CommonOperationStatus status, String message) Creates a delete key space eply with a given status an a message detailing the status. -
Method Summary
Methods inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.replies.CreateCollectionReply
getCollectionID, getKeySpaceMethods 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
-
DeleteCollectionReply
Creates a delete key space reply with a given status.- Parameters:
status- the status of the reply.
-
DeleteCollectionReply
Creates a delete key space eply with a given status an a message detailing the status.- Parameters:
status- the status of the reply.message- a message detailing the status.
-
DeleteCollectionReply
Creates a delete key space reply with a given status, as well as the keySpace and collection identifier.- Parameters:
keySpace- keySpace of the creating createdcollectionID- the identifier of the collectionstatus- the status of the reply.
-
DeleteCollectionReply
public DeleteCollectionReply(String keySpace, String collectionID, CommonOperationStatus status, String message) Creates a delete key space reply with a given status, as well as the keySpace and collection identifier. The message should contain the details of the status passed.- Parameters:
keySpace- keySpace of the creating createdcollectionID- the identifier of the collectionstatus- the status of the reply. * @param message a message detailing the status.message- a message detailing the status.
-
DeleteCollectionReply
public DeleteCollectionReply(String keySpace, String collectionID, CommonOperationStatus status, String message, String reqID) Creates a delete key space reply with a given status, as well as the keySpace and collection identifier. The message should contain the details of the status passed. Additionally, the reply also stores the request identifier associated with the reply.- Parameters:
keySpace- keySpace of the creating createdcollectionID- the identifier of the collectionstatus- the status of the reply.message- a message detailing the status.reqID- the request identifier associated with the reply.message- a message detailing the status.
-