LocalOfficeManager.builder() instead.public class DefaultOfficeManagerBuilder extends Object
| Constructor and Description |
|---|
DefaultOfficeManagerBuilder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
org.jodconverter.office.OfficeManager |
build()
Deprecated.
Builds a
ProcessPoolOfficeManager with the current configuration. |
DefaultOfficeManagerBuilder |
setConnectionProtocol(OfficeConnectionProtocol connectionProtocol)
Deprecated.
Sets the connection protocol.
|
DefaultOfficeManagerBuilder |
setKillExistingProcess(boolean killExistingProcess)
Deprecated.
Specifies if an existing office process is killed when starting a new office process for the
same connection string.
|
DefaultOfficeManagerBuilder |
setMaxTasksPerProcess(int maxTasksPerProcess)
Deprecated.
Specifies the maximum number of tasks an office process can execute before restarting.
|
DefaultOfficeManagerBuilder |
setOfficeHome(File officeHome)
Deprecated.
Specifies the office home directory (office installation).
|
DefaultOfficeManagerBuilder |
setOfficeHome(String officeHome)
Deprecated.
Specifies the office home directory (office installation).
|
DefaultOfficeManagerBuilder |
setPipeNames(String... pipeNames)
Deprecated.
Specifies the pipe names that will be use to communicate with office.
|
DefaultOfficeManagerBuilder |
setPortNumbers(int... portNumbers)
Deprecated.
Specifies the port numbers that will be use to communicate with office.
|
DefaultOfficeManagerBuilder |
setProcessManager(ProcessManager processManager)
Deprecated.
Provides a specific
ProcessManager implementation to be used when dealing with an
office process (retrieve PID, kill process). |
DefaultOfficeManagerBuilder |
setProcessManager(String processManagerClass)
Deprecated.
Provides a custom
ProcessManager implementation, which may not be included in the
standard JODConverter distribution. |
DefaultOfficeManagerBuilder |
setRetryInterval(long retryInterval)
Deprecated.
|
DefaultOfficeManagerBuilder |
setRetryTimeout(long retryTimeout)
Deprecated.
|
DefaultOfficeManagerBuilder |
setRunAsArgs(String... runAsArgs)
Deprecated.
Specifies the sudo arguments that will be used with unix commands.
|
DefaultOfficeManagerBuilder |
setTaskExecutionTimeout(long taskExecutionTimeout)
Deprecated.
Specifies the maximum time allowed to process a task.
|
DefaultOfficeManagerBuilder |
setTaskQueueTimeout(long taskQueueTimeout)
Deprecated.
Specifies the maximum living time of a task in the conversion queue.
|
DefaultOfficeManagerBuilder |
setTemplateProfileDir(File templateProfileDir)
Deprecated.
Specifies the directory to copy to the temporary office profile directories to be created.
|
DefaultOfficeManagerBuilder |
setTemplateProfileDir(String templateProfileDir)
Deprecated.
Specifies the directory to copy to the temporary office profile directories to be created.
|
DefaultOfficeManagerBuilder |
setWorkingDir(File workingDir)
Deprecated.
Specifies the directory where temporary office profile directories will be created.
|
DefaultOfficeManagerBuilder |
setWorkingDir(String workingDir)
Deprecated.
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(String... pipeNames)
pipeNames - The pipe names to use.public DefaultOfficeManagerBuilder setPortNumbers(int... portNumbers)
portNumbers - The port numbers to use.public DefaultOfficeManagerBuilder setOfficeHome(File officeHome)
officeHome - The new home directory to set.public DefaultOfficeManagerBuilder setOfficeHome(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(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(String... runAsArgs)
runAsArgs - The sudo arguments for a unix os.public DefaultOfficeManagerBuilder setWorkingDir(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(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(File templateProfileDir)
templateProfileDir - The new template profile directory.public DefaultOfficeManagerBuilder setTemplateProfileDir(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.