facets.util.app
Class AppWatcher.WatcherCoupler
java.lang.Object
facets.util.Tracer
facets.util.app.AppWatcher.WatcherCoupler
- Enclosing class:
- AppWatcher
public static class AppWatcher.WatcherCoupler
- extends Tracer
Enables client code to communicate with AppWatcher
.
The methods of AppWatcher.WatcherCoupler
enable client code to
- respond appropriately when a
WatchableOperation
throws an exception
- tell
AppWatcher
whether or not actually to time operations
that request this
- respond appropriately when either a
WatchableOperation
or the
application as a whole is timed out
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppWatcher.WatcherCoupler
public AppWatcher.WatcherCoupler()
retryCancel
protected boolean retryCancel(java.util.List<WatchableOperation> ops)
checkTimeouts
protected boolean checkTimeouts()
handleException
protected void handleException(java.util.List<WatchableOperation> ops,
java.lang.Exception e)
handleSystemTimeout
protected void handleSystemTimeout(WatchableOperation op,
java.lang.Thread timed,
boolean timing)
traceOutput
protected void traceOutput(java.lang.String msg)
- Description copied from class:
Tracer
- Outputs complete trace messages to console or elsewhere.
Default prepends helpful classname to message.
- Overrides:
traceOutput
in class Tracer
- Parameters:
msg
- passed from one of the public
methods
operationStarting
protected void operationStarting(java.util.List<WatchableOperation> ops)
operationsCompleted
protected void operationsCompleted(java.util.List<WatchableOperation> ops)