Package com.zeroc.IceMX
Class ObserverWithDelegate<T extends Metrics,O extends Observer>
java.lang.Object
com.zeroc.IceUtilInternal.StopWatch
com.zeroc.IceMX.Observer<T>
com.zeroc.IceMX.ObserverWithDelegate<T,O>
- All Implemented Interfaces:
Observer
- Direct Known Subclasses:
ObserverWithDelegateI
-
Nested Class Summary
Nested classes/interfaces inherited from class com.zeroc.IceMX.Observer
Observer.MetricsUpdate<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach()This method is called when the instrumented object is created or when the observer is attached to an existing object.voiddetach()This method is called when the instrumented object is destroyed and as a result the observer detached from the object.voidNotification of a failure.<S extends Metrics,ObserverImpl extends ObserverWithDelegate<S, Obs>, Obs extends Observer>
ObsgetObserver(String mapName, MetricsHelper<S> helper, Class<S> mcl, Class<ObserverImpl> ocl, Obs delegate) voidsetDelegate(O del) Methods inherited from class com.zeroc.IceMX.Observer
forEach, getEntry, getObserver, initMethods inherited from class com.zeroc.IceUtilInternal.StopWatch
delay, isStarted, start, stop
-
Field Details
-
_delegate
-
-
Constructor Details
-
ObserverWithDelegate
public ObserverWithDelegate()
-
-
Method Details
-
attach
public void attach()Description copied from interface:ObserverThis method is called when the instrumented object is created or when the observer is attached to an existing object. -
detach
public void detach()Description copied from interface:ObserverThis method is called when the instrumented object is destroyed and as a result the observer detached from the object. -
failed
Description copied from interface:ObserverNotification of a failure. -
getDelegate
-
setDelegate
-
getObserver
public <S extends Metrics,ObserverImpl extends ObserverWithDelegate<S, Obs getObserverObs>, Obs extends Observer> (String mapName, MetricsHelper<S> helper, Class<S> mcl, Class<ObserverImpl> ocl, Obs delegate)
-