Class DeleteCollectionRequest

java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoIPC
pt.unl.fct.di.novasys.babel.generic.ProtoRequest
pt.unl.fct.di.novasys.babel.protocols.storage.requests.common.CommonRequest
pt.unl.fct.di.novasys.babel.protocols.storage.requests.DeleteCollectionRequest

public class DeleteCollectionRequest extends CommonRequest
A request issued to perform the deletion of a collection in a given keySpace. The request contains the identifiers of the collection and the respective keySpace.
  • 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

    Fields
    Modifier and Type
    Field
    Description
    static final short
     

    Fields inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.requests.common.CommonRequest

    EMPTY_MSG
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeleteCollectionRequest(String keySpace, String collection)
    Creates a create collection request with the keySpace and the collection identifier.
    DeleteCollectionRequest(String keySpace, String opID, String collection)
    Creates a create collection request with the keySpace and the collection identifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the collection identifier.

    Methods inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.requests.common.CommonRequest

    getKeySpace, getOpID, hasOpID

    Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoRequest

    getId

    Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC

    getType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DeleteCollectionRequest

      public DeleteCollectionRequest(String keySpace, String collection)
      Creates a create collection request with the keySpace and the collection identifier.
      Parameters:
      keySpace - the keySpace of the collection.
      collection - the collection identifier.
    • DeleteCollectionRequest

      public DeleteCollectionRequest(String keySpace, String opID, String collection)
      Creates a create collection request with the keySpace and the collection identifier. Additionally, a operationID is passed to identify the operation that issued this request.
      Parameters:
      keySpace - the keySpace of the collection.
      opID - the unique operation identifier that issued this request
      collection - the collection identifier.
  • Method Details

    • getCollection

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