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 TypeMethodDescriptionvoid
attach()
This method is called when the instrumented object is created or when the observer is attached to an existing object.void
detach()
This method is called when the instrumented object is destroyed and as a result the observer detached from the object.void
Notification 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) void
setDelegate
(O del) Methods inherited from class com.zeroc.IceMX.Observer
forEach, getEntry, getObserver, init
Methods 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:Observer
This 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:Observer
This method is called when the instrumented object is destroyed and as a result the observer detached from the object. -
failed
Description copied from interface:Observer
Notification 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)
-