public static final class LocalOfficeManager.Builder extends org.jodconverter.office.AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<LocalOfficeManager.Builder>
LocalOfficeManager
.LocalOfficeManager
限定符和类型 | 方法和说明 |
---|---|
LocalOfficeManager |
build()
Creates the converter that is specified by this builder.
|
LocalOfficeManager.Builder |
disableOpengl(boolean disableOpengl)
Specifies whether OpenGL must be disabled when starting a new office process.
|
LocalOfficeManager.Builder |
killExistingProcess(boolean killExistingProcess)
Specifies whether an existing office process is killed when starting a new office process for
the same connection string.
|
LocalOfficeManager.Builder |
maxTasksPerProcess(int maxTasksPerProcess)
Specifies the maximum number of tasks an office process can execute before restarting.
|
LocalOfficeManager.Builder |
officeHome(java.io.File officeHome)
Specifies the office home directory (office installation).
|
LocalOfficeManager.Builder |
officeHome(java.lang.String officeHome)
Specifies the office home directory (office installation).
|
LocalOfficeManager.Builder |
pipeNames(java.lang.String... pipeNames)
Specifies the pipe names that will be use to communicate with office.
|
LocalOfficeManager.Builder |
portNumbers(int... portNumbers)
Specifies the port numbers that will be use to communicate with office.
|
LocalOfficeManager.Builder |
processManager(ProcessManager processManager)
Provides a specific
ProcessManager implementation to be used when dealing with an
office process (retrieve PID, kill process). |
LocalOfficeManager.Builder |
processManager(java.lang.String processManagerClass)
Provides a custom
ProcessManager implementation, which may not be included in the
standard JODConverter distribution. |
LocalOfficeManager.Builder |
processRetryInterval(long processRetryInterval)
Specifies the delay, in milliseconds, between each try when trying to execute an office
process call (start/terminate).
|
LocalOfficeManager.Builder |
processTimeout(long processTimeout)
Specifies the timeout, in milliseconds, when trying to execute an office process call
(start/terminate).
|
LocalOfficeManager.Builder |
runAsArgs(java.lang.String... runAsArgs)
Specifies the sudo arguments that will be used with unix commands.
|
LocalOfficeManager.Builder |
templateProfileDir(java.io.File templateProfileDir)
Specifies the directory to copy to the temporary office profile directories to be created.
|
LocalOfficeManager.Builder |
templateProfileDir(java.lang.String templateProfileDir)
Specifies the directory to copy to the temporary office profile directories to be created.
|
public LocalOfficeManager build()
build
在类中 org.jodconverter.office.AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<LocalOfficeManager.Builder>
public LocalOfficeManager.Builder pipeNames(java.lang.String... pipeNames)
pipeNames
- The pipe names to use.public LocalOfficeManager.Builder portNumbers(int... portNumbers)
portNumbers
- The port numbers to use.public LocalOfficeManager.Builder officeHome(java.io.File officeHome)
officeHome
- The new home directory to set.public LocalOfficeManager.Builder officeHome(java.lang.String officeHome)
officeHome
- The new home directory to set.public LocalOfficeManager.Builder processManager(ProcessManager processManager)
ProcessManager
implementation to be used when dealing with an
office process (retrieve PID, kill process).processManager
- The provided process manager.public LocalOfficeManager.Builder processManager(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
,
AbstractProcessManager
public LocalOfficeManager.Builder runAsArgs(java.lang.String... runAsArgs)
runAsArgs
- The sudo arguments for a unix os.public LocalOfficeManager.Builder templateProfileDir(java.io.File templateProfileDir)
templateProfileDir
- The new template profile directory.public LocalOfficeManager.Builder templateProfileDir(java.lang.String templateProfileDir)
templateProfileDir
- The new template profile directory.public LocalOfficeManager.Builder killExistingProcess(boolean killExistingProcess)
Default: true
killExistingProcess
- true
to kill existing process when a new process must be
created with the same connection string, false
otherwise.public LocalOfficeManager.Builder processTimeout(long processTimeout)
Default: 120000 (2 minutes)
processTimeout
- the process timeout, in milliseconds.public LocalOfficeManager.Builder processRetryInterval(long processRetryInterval)
Default: 250 (0.25 seconds)
processRetryInterval
- the retry interval, in milliseconds.public LocalOfficeManager.Builder maxTasksPerProcess(int maxTasksPerProcess)
Default: 200
maxTasksPerProcess
- The new maximum number of tasks an office process can execute.public LocalOfficeManager.Builder disableOpengl(boolean disableOpengl)
Default: false
disableOpengl
- true
to disable OpenGL, false
otherwise.