Class GhostscriptWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<GhostscriptNode>
-
- com.levigo.jadice.server.ghostscript.worker.GhostscriptWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<GhostscriptNode>
,Runnable
public class GhostscriptWorker extends NodeWorker<GhostscriptNode>
-
-
Constructor Summary
Constructors Constructor Description GhostscriptWorker()
-
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.Ghostscript
getGhostscript()
void
setGhostscript(Ghostscript gs)
Set theGhostscript
configuration.protected void
work()
Implement this method to let the node perform some useful 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, initialize, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, toString, warn, warn, warn
-
-
-
-
Method Detail
-
work
protected void work() throws Throwable
Description copied from class:NodeWorker
Implement this method to let the node perform some useful work.Implementors are free to throw whatever exception they see fit. If any
Throwable
is thrown from this method, the failure manager is notified about the fatal failure of the whole pipeline.- Specified by:
work
in classNodeWorker<GhostscriptNode>
- 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<GhostscriptNode>
-
setGhostscript
public void setGhostscript(Ghostscript gs)
Set theGhostscript
configuration. Usually injected via Spring XML configuration- Parameters:
gs
- theGhostscript
configuration
-
getGhostscript
public Ghostscript getGhostscript()
-
-