Class ExternalProcessCallWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<ExternalProcessCallNode>
-
- com.levigo.jadice.server.external.ExternalProcessCallWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<ExternalProcessCallNode>
,Runnable
public class ExternalProcessCallWorker extends NodeWorker<ExternalProcessCallNode>
Calls an external process in order to convertStream
s.
-
-
Constructor Summary
Constructors Constructor Description ExternalProcessCallWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doAbortNow()
NodeWorker implementations can provide here own logic that shall be performed when an immediate abort is triggered.protected String
getFilename()
void
initialize()
This method may be overridden, in order do perform initialization which is necessary before the actual work is started.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, doAbort, 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
Description copied from class:NodeWorker
This method may be overridden, in order do perform initialization which is necessary before the actual work is started.
Caveat: this method may be called synchronously by the server master thread. Therefore the work done within this call should be kept to an absolute minimum so as not to stall the job acceptor.- Overrides:
initialize
in classNodeWorker<ExternalProcessCallNode>
- Throws:
JobException
- in case of initialization failure
-
work
public void work() throws Exception
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<ExternalProcessCallNode>
- Throws:
Exception
-
doAbortNow
protected void doAbortNow()
Description copied from class:NodeWorker
NodeWorker implementations can provide here own logic that shall be performed when an immediate abort is triggered.jadice server 5.5.0.0
- Overrides:
doAbortNow
in classNodeWorker<ExternalProcessCallNode>
-
getFilename
protected String getFilename()
-
-