class OfficeProcess extends Object
| 限定符和类型 | 类和说明 |
|---|---|
private class |
OfficeProcess.ExitCodeRetryable |
| 限定符和类型 | 字段和说明 |
|---|---|
private File |
instanceProfileDir |
private Logger |
logger |
private File |
officeHome |
private long |
pid |
private Process |
process |
private ProcessManager |
processManager |
private String[] |
runAsArgs |
private File |
templateProfileDir |
private UnoUrl |
unoUrl |
| 构造器和说明 |
|---|
OfficeProcess(File officeHome,
UnoUrl unoUrl,
String[] runAsArgs,
File templateProfileDir,
File workDir,
ProcessManager processManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
addBasisAndUrePaths(ProcessBuilder processBuilder) |
void |
deleteProfileDir() |
int |
forciblyTerminate(long retryInterval,
long retryTimeout) |
Integer |
getExitCode() |
int |
getExitCode(long retryInterval,
long retryTimeout) |
private File |
getInstanceProfileDir(File workDir,
UnoUrl unoUrl) |
boolean |
isRunning() |
private void |
prepareInstanceProfileDir() |
void |
start() |
void |
start(boolean restart) |
private final File officeHome
private final UnoUrl unoUrl
private final String[] runAsArgs
private final File templateProfileDir
private final File instanceProfileDir
private final ProcessManager processManager
private Process process
private long pid
private final Logger logger
public void start()
throws IOException
IOExceptionpublic void start(boolean restart)
throws IOException
IOExceptionprivate void prepareInstanceProfileDir()
throws OfficeException
OfficeExceptionpublic void deleteProfileDir()
private void addBasisAndUrePaths(ProcessBuilder processBuilder) throws IOException
IOExceptionpublic boolean isRunning()
public Integer getExitCode()
public int getExitCode(long retryInterval,
long retryTimeout)
throws RetryTimeoutException
public int forciblyTerminate(long retryInterval,
long retryTimeout)
throws IOException,
RetryTimeoutException
Copyright © 2020. All rights reserved.