Class FederatedOperationHandler<INPUT,OUTPUT>
- java.lang.Object
-
- uk.gov.gchq.gaffer.federatedstore.operation.handler.impl.FederatedOperationHandler<INPUT,OUTPUT>
-
- All Implemented Interfaces:
OperationHandler<FederatedOperation<INPUT,OUTPUT>>
public class FederatedOperationHandler<INPUT,OUTPUT> extends Object implements OperationHandler<FederatedOperation<INPUT,OUTPUT>>
FederatedOperation handler for the federation of an PAYLOAD operation with an expected return type OUTPUT
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_WHILE_RUNNING_OPERATION_ON_GRAPHS_FORMAT
-
Constructor Summary
Constructors Constructor Description FederatedOperationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
doOperation(FederatedOperation<INPUT,OUTPUT> operation, Context context, Store store)
Execute the givenOperation
.
-
-
-
Field Detail
-
ERROR_WHILE_RUNNING_OPERATION_ON_GRAPHS_FORMAT
public static final String ERROR_WHILE_RUNNING_OPERATION_ON_GRAPHS_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
doOperation
public Object doOperation(FederatedOperation<INPUT,OUTPUT> operation, Context context, Store store) throws OperationException
Description copied from interface:OperationHandler
Execute the givenOperation
.- Specified by:
doOperation
in interfaceOperationHandler<INPUT>
- Parameters:
operation
- theOperation
to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- theStore
the operation should be run on- Returns:
- the output for the operation or null.
- Throws:
OperationException
- thrown if the operation fails
-
-