public class OfficeProcessEntryManager extends AbstractOfficeEntryManager
LocalOfficePoolManager提交的任务。
它将向其内部OfficeProcessManager提交任务,并等待任务完成或到达配置的任务执行超时.
OfficeProcessManagerPoolEntry还负责在达到每个进程的最大任务数时重新启动office进程.config, currentFuture, taskExecutor| Constructor and Description |
|---|
OfficeProcessEntryManager(UnoUrl unoUrl)
使用默认配置为指定的office URL创建新的协议池.
|
OfficeProcessEntryManager(UnoUrl unoUrl,
OfficeProcessManagerEntryBuilder config)
使用指定的配置为指定的office URL创建新的协议池.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doExecute(MadeInOffice task)
执行任务.
|
void |
doStart()
当office管理器启动时,允许子类执行操作.
|
void |
doStop()
当office管理器停止时,允许子类执行操作.
|
protected void |
handleExecuteTimeoutException(TimeoutException timeoutEx)
处理在执行任务时引发的超时异常.
|
boolean |
isRunning()
获取管理器是否正在运行.
|
execute, start, stoppublic OfficeProcessEntryManager(UnoUrl unoUrl)
unoUrl - 需要创建的URL.public OfficeProcessEntryManager(UnoUrl unoUrl, OfficeProcessManagerEntryBuilder config)
unoUrl - 需要创建的URL.config - 配置.public void doExecute(MadeInOffice task) throws InstrumentException
AbstractOfficeEntryManagerdoExecute in class AbstractOfficeEntryManagertask - 任务InstrumentExceptionprotected void handleExecuteTimeoutException(TimeoutException timeoutEx)
AbstractOfficeEntryManagerhandleExecuteTimeoutException in class AbstractOfficeEntryManagertimeoutEx - 抛出异常.public boolean isRunning()
OfficeManagerisRunning in interface OfficeManagerisRunning in class AbstractOfficeEntryManagertrue,否则为false.public void doStart()
throws InstrumentException
AbstractOfficeEntryManagerdoStart in class AbstractOfficeEntryManagerInstrumentException - 如果启动管理器时发生错误.public void doStop()
throws InstrumentException
AbstractOfficeEntryManagerdoStop in class AbstractOfficeEntryManagerInstrumentException - 如果在停止管理器时发生错误.Copyright © 2020. All rights reserved.