I - Vertex idV - Vertex dataE - Edge datapublic class NettyWorkerServer<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object implements WorkerServer<I,V,E>
WorkerServer and contains
 the actual ServerData.| Constructor and Description | 
|---|
| NettyWorkerServer(ImmutableClassesGiraphConfiguration<I,V,E> conf,
                 CentralizedServiceWorker<I,V,E> service,
                 org.apache.hadoop.mapreduce.Mapper.Context context,
                 Thread.UncaughtExceptionHandler exceptionHandler)Constructor to start the server. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Shuts down. | 
| long | getBytesReceived()Returns aggregate bytes received. | 
| long | getBytesReceivedPerSuperstep()Returns bytes received in current superstep | 
| String | getLocalHostOrIp()Get server host name or IP | 
| InetSocketAddress | getMyAddress()Get server address | 
| ServerData<I,V,E> | getServerData()Get server data | 
| void | prepareSuperstep()Prepare incoming messages for computation, and resolve mutation requests. | 
| void | resetBytesReceivedPerSuperstep()Resets the counter for bytes received per superstep. | 
| void | setFlowControl(FlowControl flowControl)Inform this server about the flow control used in sending requests | 
public NettyWorkerServer(ImmutableClassesGiraphConfiguration<I,V,E> conf, CentralizedServiceWorker<I,V,E> service, org.apache.hadoop.mapreduce.Mapper.Context context, Thread.UncaughtExceptionHandler exceptionHandler)
conf - Configurationservice - Service to get partition mappingscontext - Mapper contextexceptionHandler - handle uncaught exceptionspublic InetSocketAddress getMyAddress()
WorkerServergetMyAddress in interface WorkerServer<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>public String getLocalHostOrIp()
WorkerServergetLocalHostOrIp in interface WorkerServer<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>public void prepareSuperstep()
WorkerServerprepareSuperstep in interface WorkerServer<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>public ServerData<I,V,E> getServerData()
WorkerServergetServerData in interface WorkerServer<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>public void close()
WorkerServerclose in interface Closeableclose in interface AutoCloseableclose in interface WorkerServer<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>public void setFlowControl(FlowControl flowControl)
WorkerServersetFlowControl in interface WorkerServer<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>flowControl - reference to the flow control policypublic long getBytesReceivedPerSuperstep()
NetworkMetricsgetBytesReceivedPerSuperstep in interface NetworkMetricspublic void resetBytesReceivedPerSuperstep()
NetworkMetricsresetBytesReceivedPerSuperstep in interface NetworkMetricspublic long getBytesReceived()
NetworkMetricsgetBytesReceived in interface NetworkMetricsCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.