public interface OfficeManager
OfficeTask. An office manager must be started
before performing conversion tasks and must be stopped once it is no longer required. Once
stopped, an office manager cannot be restarted.| Modifier and Type | Method and Description |
|---|---|
void |
execute(OfficeTask task)
Executes the specified task and blocks until the task terminates.
|
boolean |
isRunning()
Gets whether the manager is running.
|
void |
start()
Starts the manager.
|
void |
stop()
Stops the manager.
|
void execute(OfficeTask task) throws OfficeException
task - The task to execute.OfficeException - If an error occurs.boolean isRunning()
true if the manager is running, false otherwise.void start()
throws OfficeException
OfficeException - If the manager cannot be started.void stop() throws OfficeException
OfficeException - If the manager cannot be stopped.