public abstract class AbstractOfficePoolManager extends AbstractOfficeManager
MadeInOffice的OfficeProcessEntryManager池
当调用execute(MadeInOffice)函数时,池将使用第一个OfficeProcessEntryManager来执行给定的任务| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractOfficePoolManager.AbstractOfficeManagerPoolBuilder<B extends AbstractOfficePoolManager.AbstractOfficeManagerPoolBuilder<B>>
构造
AbstractOfficePoolManager的生成器. |
AbstractOfficeManager.AbstractOfficeManagerBuilder<B extends AbstractOfficeManager.AbstractOfficeManagerBuilder<B>>| Modifier and Type | Field and Description |
|---|---|
protected OfficeManagerPoolBuilder |
config |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOfficePoolManager(int poolSize,
OfficeManagerPoolBuilder config)
使用指定的设置构造类的新实例.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract OfficeManager[] |
createPoolEntries()
在池启动时创建池条目.
|
protected void |
doStart()
允许基类在池启动时执行操作.
|
void |
execute(MadeInOffice task)
执行指定的任务并阻塞,直到任务终止.
|
boolean |
isRunning()
获取管理器是否正在运行.
|
void |
start()
启动管理器.
|
void |
stop()
停止管理器.
|
deleteTempDir, makeTempDir, makeTempDir, makeTemporaryFile, makeTemporaryFileprotected final OfficeManagerPoolBuilder config
protected AbstractOfficePoolManager(int poolSize,
OfficeManagerPoolBuilder config)
poolSize - 池的大小config - 配置项protected abstract OfficeManager[] createPoolEntries()
public void execute(MadeInOffice task) throws InstrumentException
OfficeManagertask - 要执行的任务.InstrumentException - 如果发生错误public boolean isRunning()
OfficeManagertrue,否则为false.public void start()
throws InstrumentException
OfficeManagerInstrumentException - 如果管理器不能启动.public void stop()
throws InstrumentException
OfficeManagerInstrumentException - 如果管理器不能停止.protected void doStart()
throws InstrumentException
InstrumentException - 如果发生错误.Copyright © 2019. All rights reserved.