LocalOfficeManager.builder() instead.public class DefaultOfficeManagerBuilder
extends java.lang.Object
| 构造器和说明 |
|---|
DefaultOfficeManagerBuilder()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.jodconverter.office.OfficeManager |
build()
已过时。
Builds a
ProcessPoolOfficeManager with the current configuration. |
DefaultOfficeManagerBuilder |
setConnectionProtocol(OfficeConnectionProtocol connectionProtocol)
已过时。
Sets the connection protocol.
|
DefaultOfficeManagerBuilder |
setKillExistingProcess(boolean killExistingProcess)
已过时。
Specifies if an existing office process is killed when starting a new office process for the
same connection string.
|
DefaultOfficeManagerBuilder |
setMaxTasksPerProcess(int maxTasksPerProcess)
已过时。
Specifies the maximum number of tasks an office process can execute before restarting.
|
DefaultOfficeManagerBuilder |
setOfficeHome(java.io.File officeHome)
已过时。
Specifies the office home directory (office installation).
|
DefaultOfficeManagerBuilder |
setOfficeHome(java.lang.String officeHome)
已过时。
Specifies the office home directory (office installation).
|
DefaultOfficeManagerBuilder |
setPipeNames(java.lang.String... pipeNames)
已过时。
Specifies the pipe names that will be use to communicate with office.
|
DefaultOfficeManagerBuilder |
setPortNumbers(int... portNumbers)
已过时。
Specifies the port numbers that will be use to communicate with office.
|
DefaultOfficeManagerBuilder |
setProcessManager(ProcessManager processManager)
已过时。
Provides a specific
ProcessManager implementation to be used when dealing with an
office process (retrieve PID, kill process). |
DefaultOfficeManagerBuilder |
setProcessManager(java.lang.String processManagerClass)
已过时。
Provides a custom
ProcessManager implementation, which may not be included in the
standard JODConverter distribution. |
DefaultOfficeManagerBuilder |
setRetryInterval(long retryInterval)
已过时。
|
DefaultOfficeManagerBuilder |
setRetryTimeout(long retryTimeout)
已过时。
|
DefaultOfficeManagerBuilder |
setRunAsArgs(java.lang.String... runAsArgs)
已过时。
Specifies the sudo arguments that will be used with unix commands.
|
DefaultOfficeManagerBuilder |
setTaskExecutionTimeout(long taskExecutionTimeout)
已过时。
Specifies the maximum time allowed to process a task.
|
DefaultOfficeManagerBuilder |
setTaskQueueTimeout(long taskQueueTimeout)
已过时。
Specifies the maximum living time of a task in the conversion queue.
|
DefaultOfficeManagerBuilder |
setTemplateProfileDir(java.io.File templateProfileDir)
已过时。
Specifies the directory to copy to the temporary office profile directories to be created.
|
DefaultOfficeManagerBuilder |
setTemplateProfileDir(java.lang.String templateProfileDir)
已过时。
Specifies the directory to copy to the temporary office profile directories to be created.
|
DefaultOfficeManagerBuilder |
setWorkingDir(java.io.File workingDir)
已过时。
Specifies the directory where temporary office profile directories will be created.
|
DefaultOfficeManagerBuilder |
setWorkingDir(java.lang.String workingDir)
已过时。
Specifies the directory where temporary office profile directories will be created.
|
public org.jodconverter.office.OfficeManager build()
ProcessPoolOfficeManager with the current configuration.public DefaultOfficeManagerBuilder setConnectionProtocol(OfficeConnectionProtocol connectionProtocol)
connectionProtocol - the new protocol to set.public DefaultOfficeManagerBuilder setPipeNames(java.lang.String... pipeNames)
pipeNames - The pipe names to use.public DefaultOfficeManagerBuilder setPortNumbers(int... portNumbers)
portNumbers - The port numbers to use.public DefaultOfficeManagerBuilder setOfficeHome(java.io.File officeHome)
officeHome - The new home directory to set.public DefaultOfficeManagerBuilder setOfficeHome(java.lang.String officeHome)
officeHome - The new home directory to set.public DefaultOfficeManagerBuilder setProcessManager(ProcessManager processManager)
ProcessManager implementation to be used when dealing with an
office process (retrieve PID, kill process).processManager - The provided process manager.public DefaultOfficeManagerBuilder setProcessManager(java.lang.String processManagerClass)
ProcessManager implementation, which may not be included in the
standard JODConverter distribution.processManagerClass - Type of the provided process manager. The class must implement the
ProcessManager interface, must be on the classpath (or more specifically accessible
from the current classloader) and must have a default public constructor (no argument).ProcessManager,
AbstractProcessManagerpublic DefaultOfficeManagerBuilder setRunAsArgs(java.lang.String... runAsArgs)
runAsArgs - The sudo arguments for a unix os.public DefaultOfficeManagerBuilder setWorkingDir(java.io.File workingDir)
Default: The system temporary directory as specified by the
java.io.tmpdir system property.
workingDir - The new working directory to set.public DefaultOfficeManagerBuilder setWorkingDir(java.lang.String workingDir)
Default: The system temporary directory as specified by the
java.io.tmpdir system property.
workingDir - The new working directory to set.public DefaultOfficeManagerBuilder setTemplateProfileDir(java.io.File templateProfileDir)
templateProfileDir - The new template profile directory.public DefaultOfficeManagerBuilder setTemplateProfileDir(java.lang.String templateProfileDir)
templateProfileDir - The new template profile directory.public DefaultOfficeManagerBuilder setKillExistingProcess(boolean killExistingProcess)
Default: true
killExistingProcess - true to kill existing process when a new process must be
created with the same connection string, false otherwise.@Deprecated public DefaultOfficeManagerBuilder setRetryTimeout(long retryTimeout)
Default: 120000 (2 minutes)
retryTimeout - the process timeout, in milliseconds.@Deprecated public DefaultOfficeManagerBuilder setRetryInterval(long retryInterval)
Default: 250 (0.25 seconds)
retryInterval - the retry interval, in milliseconds.public DefaultOfficeManagerBuilder setMaxTasksPerProcess(int maxTasksPerProcess)
Default: 200
maxTasksPerProcess - The new maximum number of tasks an office process can execute.public DefaultOfficeManagerBuilder setTaskExecutionTimeout(long taskExecutionTimeout)
Default: 120000 (2 minutes)
taskExecutionTimeout - The task execution timeout, in milliseconds.public DefaultOfficeManagerBuilder setTaskQueueTimeout(long taskQueueTimeout)
Default: 30000 (30 seconds)
taskQueueTimeout - The task queue timeout, in milliseconds.