Class RouterWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<RouterNode>
-
- com.levigo.jadice.server.nodes.worker.RouterWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<RouterNode>
,Runnable
public class RouterWorker extends NodeWorker<RouterNode>
-
-
Constructor Summary
Constructors Constructor Description RouterWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize()
This method may be overridden, in order do perform initialization which is necessary before the actual work is started.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, doAbort, 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, org.springframework.expression.ExpressionException
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<RouterNode>
- Throws:
JobException
- in case of initialization failureorg.springframework.expression.ExpressionException
-
work
protected void work() throws org.springframework.expression.ExpressionException, IOException
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<RouterNode>
- Throws:
org.springframework.expression.ExpressionException
IOException
-
-