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

public class ExecuteRequest extends CommonRequest
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

    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
    ExecuteRequest(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 Type
    Method
    Description
    Gets the collection identifier.
    Gets the operation to be executed

    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

    • ExecuteRequest

      public 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. For more details see the possibles implementations of the CommonOperation class on storage.utils.operations
      Parameters:
      keySpace - the keySpace of the operation
      collection - the collection of the operation
      operation - the operation being issued
    • ExecuteRequest

      public ExecuteRequest(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. 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 operation
      collection - the collection of the operation
      opID - the unique operation identifier that issued this request
      operation - the operation being issued
  • Method Details

    • getCollection

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

      public CommonOperation getOperation()
      Gets the operation to be executed
      Returns:
      the operation to be executed.