public static final class LocalOfficeManager.Builder extends org.jodconverter.core.office.AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<LocalOfficeManager.Builder>
LocalOfficeManager.LocalOfficeManager| Modifier and Type | Method and Description |
|---|---|
@NonNull LocalOfficeManager |
build() |
@NonNull LocalOfficeManager.Builder |
disableOpengl(@Nullable Boolean disableOpengl)
Specifies whether OpenGL must be disabled when starting a new office process.
|
@NonNull LocalOfficeManager.Builder |
killExistingProcess(@Nullable Boolean killExistingProcess)
Specifies whether an existing office process is killed when starting a new office process for
the same connection string.
|
@NonNull LocalOfficeManager.Builder |
maxTasksPerProcess(@Nullable Integer maxTasksPerProcess)
Specifies the maximum number of tasks an office process can execute before restarting.
|
@NonNull LocalOfficeManager.Builder |
officeHome(@Nullable File officeHome)
Specifies the office home directory (office installation).
|
@NonNull LocalOfficeManager.Builder |
officeHome(@Nullable String officeHome)
Specifies the office home directory (office installation).
|
@NonNull LocalOfficeManager.Builder |
pipeNames(String... pipeNames)
Specifies the pipe names that will be use to communicate with office.
|
@NonNull LocalOfficeManager.Builder |
portNumbers(int... portNumbers)
Specifies the port numbers that will be use to communicate with office.
|
@NonNull LocalOfficeManager.Builder |
processManager(@Nullable ProcessManager processManager)
Provides a specific
ProcessManager implementation to be used when dealing with an
office process (retrieve PID, kill process). |
@NonNull LocalOfficeManager.Builder |
processManager(@Nullable String processManagerClass)
Provides a custom
ProcessManager implementation, which may not be included in the
standard JODConverter distribution. |
@NonNull LocalOfficeManager.Builder |
processRetryInterval(@Nullable Long processRetryInterval)
Specifies the delay, in milliseconds, between each try when trying to execute an office
process call (start/terminate).
|
@NonNull LocalOfficeManager.Builder |
processTimeout(@Nullable Long processTimeout)
Specifies the timeout, in milliseconds, when trying to execute an office process call
(start/terminate).
|
@NonNull LocalOfficeManager.Builder |
runAsArgs(String... runAsArgs)
Specifies the sudo arguments that will be used with unix commands.
|
@NonNull LocalOfficeManager.Builder |
templateProfileDir(@Nullable File templateProfileDir)
Specifies the directory to copy to the temporary office profile directories to be created.
|
@NonNull LocalOfficeManager.Builder |
templateProfileDir(@Nullable String templateProfileDir)
Specifies the directory to copy to the temporary office profile directories to be created.
|
@NonNull LocalOfficeManager.Builder |
templateProfileDirOrDefault(@Nullable File templateProfileDir)
Specifies the directory to copy to the temporary office profile directories to be created.
|
@NonNull LocalOfficeManager.Builder |
templateProfileDirOrDefault(@Nullable String templateProfileDir)
Specifies the directory to copy to the temporary office profile directories to be created.
|
taskExecutionTimeout, taskQueueTimeoutpublic @NonNull LocalOfficeManager build()
build in class org.jodconverter.core.office.AbstractOfficeManager.AbstractOfficeManagerBuilder<LocalOfficeManager.Builder>public @NonNull LocalOfficeManager.Builder pipeNames(String... pipeNames)
pipeNames - The pipe names to use.public @NonNull LocalOfficeManager.Builder portNumbers(int... portNumbers)
portNumbers - The port numbers to use.public @NonNull LocalOfficeManager.Builder officeHome(@Nullable File officeHome)
officeHome - The new home directory to set.public @NonNull LocalOfficeManager.Builder officeHome(@Nullable String officeHome)
officeHome - The new home directory to set.public @NonNull LocalOfficeManager.Builder processManager(@Nullable ProcessManager processManager)
ProcessManager implementation to be used when dealing with an
office process (retrieve PID, kill process).processManager - The provided process manager.public @NonNull LocalOfficeManager.Builder processManager(@Nullable 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 @NonNull LocalOfficeManager.Builder runAsArgs(String... runAsArgs)
runAsArgs - The sudo arguments for a unix os.public @NonNull LocalOfficeManager.Builder templateProfileDir(@Nullable File templateProfileDir)
templateProfileDir - The new template profile directory.public @NonNull LocalOfficeManager.Builder templateProfileDir(@Nullable String templateProfileDir)
templateProfileDir - The new template profile directory.public @NonNull LocalOfficeManager.Builder templateProfileDirOrDefault(@Nullable File templateProfileDir)
templateProfileDir - The new template profile directory.public @NonNull LocalOfficeManager.Builder templateProfileDirOrDefault(@Nullable String templateProfileDir)
templateProfileDir - The new template profile directory.public @NonNull LocalOfficeManager.Builder killExistingProcess(@Nullable 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 @NonNull LocalOfficeManager.Builder processTimeout(@Nullable Long processTimeout)
Default: 120000 (2 minutes)
processTimeout - The process timeout, in milliseconds.public @NonNull LocalOfficeManager.Builder processRetryInterval(@Nullable Long processRetryInterval)
Default: 250 (0.25 seconds)
processRetryInterval - The retry interval, in milliseconds.public @NonNull LocalOfficeManager.Builder maxTasksPerProcess(@Nullable Integer maxTasksPerProcess)
Default: 200
maxTasksPerProcess - The new maximum number of tasks an office process can execute.public @NonNull LocalOfficeManager.Builder disableOpengl(@Nullable Boolean disableOpengl)
Default: false
disableOpengl - true to disable OpenGL, false otherwise.Copyright © 2016 - present; JODConverter.org. All rights reserved.