public class StreamWatcher extends EventServiceBase<InstantEvent<java.lang.String>>
A typical use case would be running an exec job that tails a log file, and this watcher is looking for the word "Error" or some such.
| Constructor and Description |
|---|
StreamWatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected Restore |
doStart(java.util.function.Consumer<? super InstantEvent<java.lang.String>> consumer) |
java.io.OutputStream |
getOut() |
java.lang.String |
getWatch() |
void |
setWatch(java.lang.String watch) |
fireDestroyedState, getStateChanger, hardReset, iconHelper, onHardReset, onReset, onSoftReset, run, setStateException, setTo, softReset, stateHandler, stopconfigure, getName, logger, logger, loggerName, save, setName, toStringaddIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onDestroy, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStateListener, lastStateEvent, removeStateListenerprotected Restore doStart(java.util.function.Consumer<? super InstantEvent<java.lang.String>> consumer)
doStart in class EventServiceBase<InstantEvent<java.lang.String>>public java.lang.String getWatch()
public void setWatch(java.lang.String watch)
public java.io.OutputStream getOut()