I
- Vertex idV
- Vertex valueE
- Edge valuepublic interface WorkerClient<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>
Modifier and Type | Method and Description |
---|---|
void |
authenticate()
Authenticates, as client, with another BSP worker, as server.
|
void |
closeConnections()
Closes all connections.
|
FlowControl |
getFlowControl() |
PartitionOwner |
getVertexPartitionOwner(I vertexId)
Lookup PartitionOwner for a vertex.
|
void |
openConnections()
Make sure that all the connections to workers and master have been
established.
|
void |
sendWritableRequest(int destTaskId,
WritableRequest request)
Send a request to a remote server (should be already connected)
|
void |
setup(boolean authenticate)
Setup the client.
|
void |
waitAllRequests()
Wait until all the outstanding requests are completed.
|
void setup(boolean authenticate)
authenticate
- whether to SASL authenticate with server or not:
set by giraph.authenticate configuration option.PartitionOwner getVertexPartitionOwner(I vertexId)
vertexId
- id to look up.void openConnections()
void sendWritableRequest(int destTaskId, WritableRequest request)
destTaskId
- Destination worker idrequest
- Request to sendvoid waitAllRequests()
void closeConnections() throws IOException
IOException
void authenticate() throws IOException
IOException
FlowControl getFlowControl()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.