Class ExecuteRequest
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.ExecuteRequest
A request issued by the application to perform an operation (e.g., UPDATE,
CREATE, READ, etc.) on a specific collection of a keySpace. the request
receives information about the keySpace and collection identifiers, as well
as an object containing the information about the operation to be executed.
The operation is represented to a CommonOperation abstract class that can be
instantiated through different types of operations for specific storage
solutions (i.e., Blockchain, RDBMS, etc.). For more informations check the
storage.utils.operation package.
-
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
ConstructorsConstructorDescriptionExecuteRequest(String keySpace, String collection, String opID, CommonOperation operation) Constructs an ExecuteRequest with the keySpace identifier, the collection identifier, as well as an object containing the operation to be executed.ExecuteRequest(String keySpace, String collection, CommonOperation operation) Constructs an ExecuteRequest with the keySpace identifier, the collection identifier, as well as an object containing the operation to be executed. -
Method Summary
Modifier and TypeMethodDescriptionGets the collection identifier.Gets the operation to be executedMethods 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
-
ExecuteRequest
Constructs an ExecuteRequest with the keySpace identifier, the collection identifier, as well as an object containing the operation to be executed. For more details see the possibles implementations of the CommonOperation class on storage.utils.operations- Parameters:
keySpace- the keySpace of the operationcollection- the collection of the operationoperation- the operation being issued
-
ExecuteRequest
Constructs an ExecuteRequest with the keySpace identifier, the collection identifier, as well as an object containing the operation to be executed. For more details see the possibles implementations of the CommonOperation class on storage.utils.operations. Additionally, a operationID is passed to identify the operation that issued this request.- Parameters:
keySpace- the keySpace of the operationcollection- the collection of the operationopID- the unique operation identifier that issued this requestoperation- the operation being issued
-
-
Method Details
-
getCollection
Gets the collection identifier.- Returns:
- the collection identifier.
-
getOperation
Gets the operation to be executed- Returns:
- the operation to be executed.
-