public class AllWorkersInfo extends Object
| Constructor and Description | 
|---|
| AllWorkersInfo(List<WorkerInfo> workers,
              WorkerInfo myWorker)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getMyWorkerIndex()Get index for this worker | 
| int | getWorkerCount()Get number of workers | 
| int | getWorkerIndex(WorkerInfo workerInfo)For every worker this method returns unique number
 between 0 and N, where N is the total number of workers. | 
| List<WorkerInfo> | getWorkerList()List of WorkerInfos | 
public AllWorkersInfo(List<WorkerInfo> workers, WorkerInfo myWorker)
workers - Ordered list of workersmyWorker - My workerpublic List<WorkerInfo> getWorkerList()
public int getWorkerCount()
public int getMyWorkerIndex()
public int getWorkerIndex(WorkerInfo workerInfo)
workerInfo - worker info objectCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.