facets.util.app
Class AppWatcher.WatcherCoupler

java.lang.Object
  extended by facets.util.Tracer
      extended by 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


Constructor Summary
AppWatcher.WatcherCoupler()
           
 
Method Summary
protected  boolean checkTimeouts()
           
protected  void handleException(java.util.List<WatchableOperation> ops, java.lang.Exception e)
           
protected  void handleSystemTimeout(WatchableOperation op, java.lang.Thread timed, boolean timing)
           
protected  void operationsCompleted(java.util.List<WatchableOperation> ops)
           
protected  void operationStarting(java.util.List<WatchableOperation> ops)
           
protected  boolean retryCancel(java.util.List<WatchableOperation> ops)
           
protected  void traceOutput(java.lang.String msg)
          Outputs complete trace messages to console or elsewhere.
 
Methods inherited from class facets.util.Tracer
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutputWithClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppWatcher.WatcherCoupler

public AppWatcher.WatcherCoupler()
Method Detail

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)