|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.monitor.TimedInterface
public final class TimedInterface
This class creates a Proxy monitor that tracks all calls to methods
of an interface.
IDummy dummy = TimedInterface.newProxy(IDummy.class, new DummyImpl(), "id"); DefaultMonitorRegistry.getInstance().register((CompositeMonitor)dummy);
All calls to methods implemented by IDummy would have an associated BasicTimer with them. The
name for the CompositeMonitor is the name of the method. Additional tags are added:
interface interface being implemented.
class simple name of the concrete class implementing the interface.
id (Optional) An identifier for this particular instance.
| Method Summary | ||
|---|---|---|
static
|
newProxy(java.lang.Class<T> ctype,
T concrete)
Creates a new TimedInterface for a given interface ctype with a concrete class
concrete. |
|
static
|
newProxy(java.lang.Class<T> ctype,
T concrete,
java.lang.String id)
Creates a new TimedInterface for a given interface ctype with a concrete class
concrete and a specific id. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T newProxy(java.lang.Class<T> ctype,
T concrete,
java.lang.String id)
ctype with a concrete class
concrete and a specific id. The id can be used to distinguish among multiple
objects with the same concrete class.
public static <T> T newProxy(java.lang.Class<T> ctype,
T concrete)
ctype with a concrete class
concrete.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||