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.FactoryRequestServerHandlernewHandler in interface RequestServerHandler.FactoryworkerRequestReservedMap - Worker request reservation mapconf - Configuration to usemyTaskInfo - Current task infoexceptionHandler - Handles uncaught exceptionsRequestServerHandlerpublic void setFlowControl(FlowControl flowControl)
RequestServerHandler.FactorysetFlowControl in interface RequestServerHandler.FactoryflowControl - reference to flow control usedCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.