Class Observer<T extends Metrics>

java.lang.Object
com.zeroc.IceUtilInternal.StopWatch
com.zeroc.IceMX.Observer<T>
All Implemented Interfaces:
Observer
Direct Known Subclasses:
ObserverWithDelegate

public class Observer<T extends Metrics> extends com.zeroc.IceUtilInternal.StopWatch implements Observer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called when the instrumented object is created or when the observer is attached to an existing object.
    void
    This method is called when the instrumented object is destroyed and as a result the observer detached from the object.
    void
    failed(String exceptionName)
    Notification of a failure.
    void
     
    com.zeroc.IceInternal.MetricsMap<T>.com.zeroc.IceInternal.MetricsMap.Entry
    getEntry(com.zeroc.IceInternal.MetricsMap<?> map)
     
    <S extends Metrics, ObserverImpl extends Observer<S>>
    ObserverImpl
    getObserver(String mapName, MetricsHelper<S> helper, Class<S> mcl, Class<ObserverImpl> ocl)
     
    void
    init(MetricsHelper<T> helper, List<com.zeroc.IceInternal.MetricsMap<T>.com.zeroc.IceInternal.MetricsMap.Entry> objects, Observer<T> previous)
     

    Methods inherited from class com.zeroc.IceUtilInternal.StopWatch

    delay, isStarted, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Observer

      public Observer()
  • Method Details

    • attach

      public void attach()
      Description copied from interface: Observer
      This method is called when the instrumented object is created or when the observer is attached to an existing object.
      Specified by:
      attach in interface Observer
    • detach

      public void detach()
      Description copied from interface: Observer
      This method is called when the instrumented object is destroyed and as a result the observer detached from the object.
      Specified by:
      detach in interface Observer
    • failed

      public void failed(String exceptionName)
      Description copied from interface: Observer
      Notification of a failure.
      Specified by:
      failed in interface Observer
      Parameters:
      exceptionName - The name of the exception.
    • forEach

      public void forEach(Observer.MetricsUpdate<T> u)
    • init

      public void init(MetricsHelper<T> helper, List<com.zeroc.IceInternal.MetricsMap<T>.com.zeroc.IceInternal.MetricsMap.Entry> objects, Observer<T> previous)
    • getObserver

      public <S extends Metrics, ObserverImpl extends Observer<S>> ObserverImpl getObserver(String mapName, MetricsHelper<S> helper, Class<S> mcl, Class<ObserverImpl> ocl)
    • getEntry

      public com.zeroc.IceInternal.MetricsMap<T>.com.zeroc.IceInternal.MetricsMap.Entry getEntry(com.zeroc.IceInternal.MetricsMap<?> map)