public interface OfficeManager
MadeInOffice。在执行转换任务之前必须启动office管理器,
并且在不再需要它时必须停止它。停止后就无法重新启动office管理器| Modifier and Type | Method and Description |
|---|---|
void |
execute(MadeInOffice task)
执行指定的任务并阻塞,直到任务终止
|
boolean |
isRunning()
获取管理器是否正在运行
|
void |
start()
启动管理器
|
void |
stop()
停止管理器
|
void execute(MadeInOffice task) throws InstrumentException
task - 要执行的任务InstrumentException - 如果发生错误boolean isRunning()
true,否则为falsevoid start()
throws InstrumentException
InstrumentException - 如果管理器不能启动void stop() throws InstrumentException
InstrumentException - 如果管理器不能停止Copyright © 2020. All rights reserved.