Class CreateKeySpaceRequest

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.CreateKeySpaceRequest

public class CreateKeySpaceRequest extends CommonRequest
A request issued by the application to create a keyspace. The request contains information about the keyspace in question and a set of optional properties for the creation of the 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
    Creates a create collection request with the keySpace.
    Creates a create collection request with the keySpace.
    CreateKeySpaceRequest(String keySpace, String opID, Properties properties)
    Creates a create collection request with the keySpace, and a set of optional properties for the creation of the collection.
    CreateKeySpaceRequest(String keySpace, Properties properties)
    Creates a create collection request with the keySpace, and a set of optional properties for the creation of the collection.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the properties for the creation of the collection.

    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

    • CreateKeySpaceRequest

      public CreateKeySpaceRequest(String keySpace, Properties properties)
      Creates a create collection request with the keySpace, and a set of optional properties for the creation of the collection.
      Parameters:
      keySpace - the keySpace of the collection.
      properties - optional properties for the creation of the collection.
    • CreateKeySpaceRequest

      public CreateKeySpaceRequest(String keySpace)
      Creates a create collection request with the keySpace.
      Parameters:
      keySpace - the keySpace of the collection.
    • CreateKeySpaceRequest

      public CreateKeySpaceRequest(String keySpace, String opID, Properties properties)
      Creates a create collection request with the keySpace, and a set of optional properties for the creation of the collection. 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
      properties - optional properties for the creation of the collection.
    • CreateKeySpaceRequest

      public CreateKeySpaceRequest(String keySpace, String opID)
      Creates a create collection request with the keySpace. 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
  • Method Details

    • getProperties

      public Properties getProperties()
      Gets the properties for the creation of the collection. If no properties were passed in the constructor, this method returns null.
      Returns:
      the properties of the collection, or null if none were passed in the constructor.