Class FederatedOutputHandler<PAYLOAD extends Output<OUTPUT>,OUTPUT>
- java.lang.Object
-
- uk.gov.gchq.gaffer.federatedstore.operation.handler.impl.FederatedOutputHandler<PAYLOAD,OUTPUT>
-
- Type Parameters:
PAYLOAD- The operation to be federated and executed by delegate graphs.OUTPUT- The type of object returned by Federation.
- All Implemented Interfaces:
OperationHandler<PAYLOAD>,OutputOperationHandler<PAYLOAD,OUTPUT>
- Direct Known Subclasses:
FederatedOutputIterableHandler
public class FederatedOutputHandler<PAYLOAD extends Output<OUTPUT>,OUTPUT> extends Object implements OutputOperationHandler<PAYLOAD,OUTPUT>
Handler for the federation of an PAYLOAD operation with an expected return type Iterable- See Also:
OperationHandler,FederatedStore,GetElements
-
-
Constructor Summary
Constructors Constructor Description FederatedOutputHandler()FederatedOutputHandler(OUTPUT defaultEmpty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OUTPUTdoOperation(PAYLOAD operation, Context context, Store store)Execute the givenOutputoperation.
-
-
-
Constructor Detail
-
FederatedOutputHandler
public FederatedOutputHandler(OUTPUT defaultEmpty)
-
FederatedOutputHandler
public FederatedOutputHandler()
-
-
Method Detail
-
doOperation
public OUTPUT doOperation(PAYLOAD operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<PAYLOAD extends Output<OUTPUT>>- Specified by:
doOperationin interfaceOutputOperationHandler<PAYLOAD extends Output<OUTPUT>,OUTPUT>- Parameters:
operation- theOutputoperation to be executedcontext- the operation chain context, containing the user who executed the operationstore- theStorethe operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException- thrown if the operation fails
-
-