@PrimitiveOperator
@OutputPortSet(cardinality=1)
public class DirectoryWatcher
extends com.ibm.streams.operator.samples.patterns.ProcessTupleProducer
implements java.io.FileFilter
Constructor and Description |
---|
DirectoryWatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File pathname) |
protected java.lang.String |
getDirectory() |
void |
initialize(com.ibm.streams.operator.OperatorContext context) |
protected void |
process() |
void |
setDirectory(java.lang.String directory) |
protected void |
sortAndSubmit(java.util.List<java.io.File> files) |
producerInitialize, shutdown, startProcessing
allPortsReady, getInitialDelay, getInitialDelayUnit, setInitDelay, setInitDelay, setInitialDelay
checkPorts, createAvoidCompletionThread, createAvoidCompletionThread, createAvoidCompletionThreadIfNoInputs, getControlPlaneContext, getException, getInput, getOperatorContext, getOutput, process, processPunctuation, setLoggerAspects, setTagData
protected java.lang.String getDirectory()
public void initialize(com.ibm.streams.operator.OperatorContext context) throws java.lang.Exception
initialize
in interface com.ibm.streams.operator.Operator
initialize
in class com.ibm.streams.operator.samples.patterns.ProcessTupleProducer
java.lang.Exception
@Parameter public void setDirectory(java.lang.String directory)
protected void sortAndSubmit(java.util.List<java.io.File> files) throws java.lang.Exception
java.lang.Exception
protected void process() throws java.lang.Exception
process
in class com.ibm.streams.operator.samples.patterns.ProcessTupleProducer
java.lang.Exception
public boolean accept(java.io.File pathname)
accept
in interface java.io.FileFilter