public static class WorkerRequestServerHandler.Factory<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object implements RequestServerHandler.Factory
WorkerRequestServerHandler
Constructor and Description |
---|
Factory(ServerData<I,V,E> serverData)
Constructor
|
Modifier and Type | Method and Description |
---|---|
RequestServerHandler |
newHandler(WorkerRequestReservedMap workerRequestReservedMap,
ImmutableClassesGiraphConfiguration conf,
TaskInfo myTaskInfo,
Thread.UncaughtExceptionHandler exceptionHandler)
Create new
RequestServerHandler |
void |
setFlowControl(FlowControl flowControl)
Inform the factory about the flow control policy used (this method should
be called before any call to `#newHandle()`)
|
public Factory(ServerData<I,V,E> serverData)
serverData
- Data held by the serverpublic RequestServerHandler newHandler(WorkerRequestReservedMap workerRequestReservedMap, ImmutableClassesGiraphConfiguration conf, TaskInfo myTaskInfo, Thread.UncaughtExceptionHandler exceptionHandler)
RequestServerHandler.Factory
RequestServerHandler
newHandler
in interface RequestServerHandler.Factory
workerRequestReservedMap
- Worker request reservation mapconf
- Configuration to usemyTaskInfo
- Current task infoexceptionHandler
- Handles uncaught exceptionsRequestServerHandler
public void setFlowControl(FlowControl flowControl)
RequestServerHandler.Factory
setFlowControl
in interface RequestServerHandler.Factory
flowControl
- reference to flow control usedCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.