public interface Foreman extends ParallelObject
| Modifier and Type | Field and Description |
|---|---|
static String |
FOREMAN_TYPE |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
返回执行哪种类型的工作任务
|
void |
setWorkCombiner(WorkCombiner workCombiner)
设置工作合并器
|
void |
setWorkSplitter(WorkSplitter workSplitter)
设置工作分解器
|
Warehouse |
work(Work work,
List<Worker> workerList)
开始干活以完成工作
|
getIdstatic final String FOREMAN_TYPE
String getType() throws RemoteException
getType in interface ParallelObjectRemoteExceptionWarehouse work(Work work, List<Worker> workerList) throws IOException
IOExceptionvoid setWorkCombiner(WorkCombiner workCombiner) throws RemoteException
workCombiner - RemoteExceptionvoid setWorkSplitter(WorkSplitter workSplitter) throws RemoteException
workSplitter - RemoteExceptionCopyright © 2006–2018 TinyGroup. All rights reserved.