public class OfficeProcessManager extends Object
| Constructor and Description |
|---|
OfficeProcessManager(UnoUrl unoUrl,
OfficeProcessManagerBuilder config)
创建具有指定配置的新管理器.
|
| Modifier and Type | Method and Description |
|---|---|
void |
restartAndWait()
新启动office进程,并等待连接到重新启动的进程。
|
void |
restartDueToLostConnection()
当连接丢失时,重新启动office进程.
|
void |
restartDueToTaskTimeout()
在执行任务时出现超时时,重新启动office进程.
|
void |
startAndWait()
启动一个office进程,并等待连接到正在运行的进程.
|
void |
stopAndWait()
停止office进程并等待该进程停止.
|
public OfficeProcessManager(UnoUrl unoUrl, OfficeProcessManagerBuilder config)
unoUrl - 为其创建管理器的URL.config - 管理器的配置.public void restartAndWait()
throws InstrumentException
InstrumentException - 如果我们不能重新启动office进程.public void restartDueToLostConnection()
public void restartDueToTaskTimeout()
public void startAndWait()
throws InstrumentException
InstrumentException - 如果不能启动并连接到office进程.public void stopAndWait()
throws InstrumentException
InstrumentException - 如果我们不能停止office程序.Copyright © 2020. All rights reserved.