public final class LocalOfficeManager
extends java.lang.Object
OfficeManager
implementation that uses a pool of office processes to execute
conversion tasks.Modifier and Type | Class and Description |
---|---|
static class |
org.jodconverter.office.AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<B extends org.jodconverter.office.AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<B>> |
static class |
LocalOfficeManager.Builder
A builder for constructing a
LocalOfficeManager . |
Modifier and Type | Field and Description |
---|---|
protected org.jodconverter.office.OfficeManagerPoolConfig |
config |
Modifier and Type | Method and Description |
---|---|
static LocalOfficeManager.Builder |
builder()
Creates a new builder instance.
|
protected org.jodconverter.office.OfficeProcessManagerPoolEntry[] |
createPoolEntries() |
protected void |
doStart() |
void |
execute(org.jodconverter.task.OfficeTask arg0) |
static LocalOfficeManager |
install()
Creates a new
LocalOfficeManager with default configuration. |
boolean |
isRunning() |
static LocalOfficeManager |
make()
Creates a new
LocalOfficeManager with default configuration. |
java.io.File |
makeTemporaryFile(java.lang.String arg0) |
void |
start() |
void |
stop() |
public static LocalOfficeManager.Builder builder()
public static LocalOfficeManager make()
LocalOfficeManager
with default configuration.LocalOfficeManager
with default configuration.public static LocalOfficeManager install()
LocalOfficeManager
with default configuration. The created manager will
then be the unique instance of the InstalledOfficeManagerHolder
class. Note that if the
InstalledOfficeManagerHolder
class already holds an OfficeManager
instance, the
owner of this existing manager is responsible to stopped it.LocalOfficeManager
with default configuration.protected org.jodconverter.office.OfficeProcessManagerPoolEntry[] createPoolEntries()
public void execute(org.jodconverter.task.OfficeTask arg0) throws org.jodconverter.office.OfficeException
execute
in interface org.jodconverter.office.OfficeManager
org.jodconverter.office.OfficeException
public boolean isRunning()
isRunning
in interface org.jodconverter.office.OfficeManager
public void start() throws org.jodconverter.office.OfficeException
start
in interface org.jodconverter.office.OfficeManager
org.jodconverter.office.OfficeException
public void stop() throws org.jodconverter.office.OfficeException
stop
in interface org.jodconverter.office.OfficeManager
org.jodconverter.office.OfficeException
public java.io.File makeTemporaryFile(java.lang.String arg0)
makeTemporaryFile
in interface org.jodconverter.office.TemporaryFileMaker
protected void doStart() throws org.jodconverter.office.OfficeException
org.jodconverter.office.OfficeException