public interface MasterClient
Modifier and Type | Method and Description |
---|---|
void |
closeConnections()
Closes all connections.
|
void |
finishSendingValues()
Flush aggregated values cache.
|
void |
flush()
Flush all outgoing messages.
|
FlowControl |
getFlowControl()
Get the reference to the flow control policy used for sending requests
|
void |
openConnections()
Make sure that all the connections to workers have been established.
|
void |
sendToOwner(String name,
GlobalCommType type,
org.apache.hadoop.io.Writable value)
Sends aggregator to its owner
|
void |
sendWritableRequest(int destTaskId,
WritableRequest request)
Send a request to a remote server (should be already connected)
|
void openConnections()
void sendToOwner(String name, GlobalCommType type, org.apache.hadoop.io.Writable value) throws IOException
name
- Name of the objecttype
- Global communication typevalue
- Object valueIOException
void finishSendingValues() throws IOException
IOException
void flush()
void sendWritableRequest(int destTaskId, WritableRequest request)
destTaskId
- Destination worker idrequest
- Request to sendvoid closeConnections()
FlowControl getFlowControl()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.