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
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
FieldsFields inherited from class pt.unl.fct.di.novasys.babel.protocols.storage.requests.common.CommonRequest
EMPTY_MSG -
Constructor Summary
ConstructorsConstructorDescriptionCreateKeySpaceRequest(String keySpace) Creates a create collection request with the keySpace.CreateKeySpaceRequest(String keySpace, String opID) 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 TypeMethodDescriptionGets 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, hasOpIDMethods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoRequest
getIdMethods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC
getType
-
Field Details
-
REQUEST_ID
public static final short REQUEST_ID- See Also:
-
-
Constructor Details
-
CreateKeySpaceRequest
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
Creates a create collection request with the keySpace.- Parameters:
keySpace- the keySpace of the collection.
-
CreateKeySpaceRequest
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 requestproperties- optional properties for the creation of the collection.
-
CreateKeySpaceRequest
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
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.
-