public class Communication
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
Constructor and Description |
---|
Communication() |
Modifier and Type | Method and Description |
---|---|
static boolean |
allgather(java.lang.String contextName,
java.lang.String operationName,
java.util.List<Transferable> objs,
DataMap dataMap,
Workers workers)
Allgather collective communication operation
|
static boolean |
barrier(java.lang.String contextName,
java.lang.String operationName,
DataMap dataMap,
Workers workers)
In barrier, each worker send a message to
master.
|
static boolean |
chainBcast(java.lang.String contextName,
int bcastWorkerID,
java.lang.String operationName,
java.util.List<Transferable> objs,
Workers workers)
The broadcast communication operation using
chain method.
|
static boolean |
chainBcastAndRecv(java.lang.String contextName,
int bcastWorkerID,
java.lang.String operationName,
java.util.List<Transferable> objs,
Workers workers,
DataMap dataMap)
The broadcast communication operation using
chain method.
|
static boolean |
gather(java.lang.String contextName,
java.lang.String operationName,
java.util.List<Transferable> objs,
int gatherWorkerID,
DataMap dataMap,
Workers workers)
Gather collective communication operation
|
static boolean |
mstBcast(java.lang.String contextName,
int bcastWorkerID,
java.lang.String operationName,
java.util.List<Transferable> objs,
Workers workers)
The broadcast communication operation using
MST method.
|
static boolean |
mstBcastAndRecv(java.lang.String contextName,
int bcastWorkerID,
java.lang.String operationName,
java.util.List<Transferable> objs,
Workers workers,
DataMap dataMap)
The broadcast communication operation using
MST method.
|
public static boolean barrier(java.lang.String contextName, java.lang.String operationName, DataMap dataMap, Workers workers)
contextName
- the name of operation contextoperationName
- the name of the operationdataMap
- the DataMapworkers
- the Workerspublic static boolean gather(java.lang.String contextName, java.lang.String operationName, java.util.List<Transferable> objs, int gatherWorkerID, DataMap dataMap, Workers workers)
contextName
- the name of the contextoperationName
- the name of the operationobjs
- the list of Transferable objectsgatherWorkerID
- the WorkerID to senddataMap
- the DataMapworkers
- the Workerspublic static boolean allgather(java.lang.String contextName, java.lang.String operationName, java.util.List<Transferable> objs, DataMap dataMap, Workers workers)
contextName
- the name of the contextoperationName
- the name of the operationobjs
- the list of Transferable objectsdataMap
- the DataMapworkers
- the Workerspublic static boolean chainBcast(java.lang.String contextName, int bcastWorkerID, java.lang.String operationName, java.util.List<Transferable> objs, Workers workers)
contextName
- the name of the contextbcastWorkerID
- the worker doing broadcastoperationName
- the name of the operationobjs
- the list of Transferable objectsworkers
- the Workerspublic static boolean chainBcastAndRecv(java.lang.String contextName, int bcastWorkerID, java.lang.String operationName, java.util.List<Transferable> objs, Workers workers, DataMap dataMap)
contextName
- the name of the contextbcastWorkerID
- the worker doing broadcastoperationName
- the name of the operationobjs
- the list of Transferable objectsworkers
- the WorkersdataMap
- the DataMappublic static boolean mstBcast(java.lang.String contextName, int bcastWorkerID, java.lang.String operationName, java.util.List<Transferable> objs, Workers workers)
contextName
- the name of the contextbcastWorkerID
- the worker doing broadcastoperationName
- the name of the operationobjs
- the list of Transferable objectsworkers
- the Workerspublic static boolean mstBcastAndRecv(java.lang.String contextName, int bcastWorkerID, java.lang.String operationName, java.util.List<Transferable> objs, Workers workers, DataMap dataMap)
contextName
- the name of the contextbcastWorkerID
- the worker doing broadcastoperationName
- the name of the operationobjs
- the list of Transferable objectsworkers
- the WorkersdataMap
- the DataMap