Class AddElementsFromSocketHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.flink.operation.handler.AddElementsFromSocketHandler
-
- All Implemented Interfaces:
OperationHandler<AddElementsFromSocket>
public class AddElementsFromSocketHandler extends Object implements OperationHandler<AddElementsFromSocket>
A
AddElementsFromSocketHandlerhandles theAddElementsFromSocketoperation.This uses Flink to stream the
Elementobjects from a socket into Gaffer.Rebalancing can be skipped by setting the operation option: gaffer.flink.operation.handler.skip-rebalancing to true
-
-
Constructor Summary
Constructors Constructor Description AddElementsFromSocketHandler()AddElementsFromSocketHandler(org.apache.flink.streaming.api.functions.sink.SinkFunction<Element> sink)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoOperation(AddElementsFromSocket op, Context context, Store store)Execute the givenOperation.
-
-
-
Constructor Detail
-
AddElementsFromSocketHandler
public AddElementsFromSocketHandler()
-
AddElementsFromSocketHandler
public AddElementsFromSocketHandler(org.apache.flink.streaming.api.functions.sink.SinkFunction<Element> sink)
-
-
Method Detail
-
doOperation
public Object doOperation(AddElementsFromSocket op, Context context, Store store) throws OperationException
Description copied from interface:OperationHandlerExecute the givenOperation.- Specified by:
doOperationin interfaceOperationHandler<AddElementsFromSocket>- Parameters:
op- theOperationto 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 or null.
- Throws:
OperationException- thrown if the operation fails
-
-