|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.monitor.BasicCompositeMonitor
public final class BasicCompositeMonitor
Simple composite monitor type with a static list of sub-monitors. The value for the composite is the number of sub-monitors.
| Constructor Summary | |
|---|---|
BasicCompositeMonitor(MonitorConfig config,
java.util.List<Monitor<?>> monitors)
Create a new composite. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
MonitorConfig |
getConfig()
Configuration used to identify a monitor and provide metadata used in aggregations. |
java.util.List<Monitor<?>> |
getMonitors()
Returns a list of sub-monitors for this composite. |
java.lang.Integer |
getValue()
Returns the current value for the monitor. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicCompositeMonitor(MonitorConfig config,
java.util.List<Monitor<?>> monitors)
config - configuration for the composite. It is recommended that the configuration
shares common tags with the sub-monitors, but it is not enforced.monitors - list of sub-monitors| Method Detail |
|---|
public java.lang.Integer getValue()
getValue in interface Monitor<java.lang.Integer>public MonitorConfig getConfig()
getConfig in interface Monitor<java.lang.Integer>public java.util.List<Monitor<?>> getMonitors()
getMonitors in interface CompositeMonitor<java.lang.Integer>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||