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)
开始干活以完成工作
|
getId
static final String FOREMAN_TYPE
String getType() throws RemoteException
getType
in interface ParallelObject
RemoteException
Warehouse work(Work work, List<Worker> workerList) throws IOException
IOException
void setWorkCombiner(WorkCombiner workCombiner) throws RemoteException
workCombiner
- RemoteException
void setWorkSplitter(WorkSplitter workSplitter) throws RemoteException
workSplitter
- RemoteException
Copyright © 2006–2018 TinyGroup. All rights reserved.