Class JavamailInputWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<JavamailInputNode>
-
- com.levigo.jadice.server.javamail.JavamailInputWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<JavamailInputNode>
,Runnable
public class JavamailInputWorker extends NodeWorker<JavamailInputNode>
A worker used to fetch data from JavaMail supported message stores.
-
-
Constructor Summary
Constructors Constructor Description JavamailInputWorker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static boolean
isPathSelected(String id, String selector, boolean acceptParentPath)
Select paths of typei1/i2/i3/...
with componentsiN
denoting hierarchical part indexes using selectors containing shell-style wildcard expressions.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, 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<JavamailInputNode>
- Throws:
Throwable
- in case of processing failure
-
isPathSelected
protected static boolean isPathSelected(String id, String selector, boolean acceptParentPath)
Select paths of typei1/i2/i3/...
with componentsiN
denoting hierarchical part indexes using selectors containing shell-style wildcard expressions.- Parameters:
id
- path which will be checkedselector
- the path expression to check foracceptParentPath
-true
to match may path starting with the provided selector- Returns:
- true if selector equals id
-
-