Class LibreOfficeConversionWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<T>
-
- com.levigo.jadice.server.core.StreamWorker<LibreOfficeConversionNode>
-
- com.levigo.jadice.server.libreoffice.server.LibreOfficeConversionWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<LibreOfficeConversionNode>
,Runnable
public class LibreOfficeConversionWorker extends StreamWorker<LibreOfficeConversionNode>
Worker for theLibreOfficeConversionNode
.Be aware of the class path issue described in
LibreOfficeConversionNode
!
-
-
Constructor Summary
Constructors Constructor Description LibreOfficeConversionWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doAbort()
NodeWorker implementations can provide here own logic that shall be performed when an abort is triggered.protected void
forceShutdown(Thread workerThread)
LibreOfficeInstancePool
getInstancePool()
void
initialize()
Create a temp working directoryvoid
setInstancePool(LibreOfficeInstancePool instancePool)
Set theLibreOfficeInstancePool
.protected void
storeDocComponent(com.sun.star.lang.XComponent xDoc, String storeUrl)
protected void
work(Stream stream)
Implement this method in order to work on a single stream.-
Methods inherited from class com.levigo.jadice.server.core.StreamWorker
accept, reject, work
-
Methods inherited from class com.levigo.jadice.server.core.NodeWorker
abort, abortNow, addInputBundle, addOutputBundle, doAbortNow, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getState, getStreamTransportFactory, getTransportSender, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, toString, warn, warn, warn
-
-
-
-
Method Detail
-
initialize
public void initialize() throws JobException
Create a temp working directory- Overrides:
initialize
in classNodeWorker<LibreOfficeConversionNode>
- Throws:
JobException
- in case of initialization failure
-
work
protected void work(Stream stream) throws Throwable
Description copied from class:StreamWorker
Implement this method in order to work on a single stream.- Specified by:
work
in classStreamWorker<LibreOfficeConversionNode>
- Parameters:
stream
- theStream
to work on- Throws:
Throwable
- in case of processing failure
-
doAbort
protected void doAbort()
Description copied from class:NodeWorker
NodeWorker implementations can provide here own logic that shall be performed when an abort is triggered.- Overrides:
doAbort
in classNodeWorker<LibreOfficeConversionNode>
-
storeDocComponent
protected void storeDocComponent(com.sun.star.lang.XComponent xDoc, String storeUrl) throws Exception
- Throws:
Exception
-
forceShutdown
protected void forceShutdown(Thread workerThread)
-
getInstancePool
public LibreOfficeInstancePool getInstancePool()
-
setInstancePool
public void setInstancePool(LibreOfficeInstancePool instancePool)
Set theLibreOfficeInstancePool
. Usually done in Spring XML configuration- Parameters:
instancePool
- an LibreOfficeInstancePool
-
-