Package org.oddjob.events
Class StreamWatcher
- All Implemented Interfaces:
Runnable,ArooaContextAware,ArooaSessionAware,Outbound<InstantEvent<String>>,PropertyChangeNotifier,Iconic,LogEnabled,Resettable,Stateful,Stoppable
Description
Watch a stream for an instance of a string. Typically this watcher (and its trigger) will be started before a job that produces some output that needs to be monitored.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 Summary
Constructors -
Method Summary
Methods inherited from class org.oddjob.events.EventServiceBase
fireDestroyedState, getStateChanger, hardReset, iconHelper, onHardReset, onReset, onSoftReset, run, setStateException, setTo, softReset, stateHandler, stopMethods inherited from class org.oddjob.framework.extend.BasePrimary
configure, getName, logger, logger, loggerName, save, setName, toStringMethods inherited from class org.oddjob.framework.extend.BaseComponent
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onDestroy, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.oddjob.Stateful
addStateListener, lastStateEvent, removeStateListener
-
Constructor Details
-
StreamWatcher
public StreamWatcher()
-
-
Method Details
-
doStart
- Specified by:
doStartin classEventServiceBase<InstantEvent<String>>
-
getWatch
-
setWatch
-
getOut
-