public final class BasicCompositeMonitor extends AbstractMonitor<java.lang.Integer> implements CompositeMonitor<java.lang.Integer>
config
Constructor and Description |
---|
BasicCompositeMonitor(MonitorConfig config,
java.util.List<Monitor<?>> monitors)
Create a new composite.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Monitor<?>> |
getMonitors()
Returns a list of sub-monitors for this composite.
|
java.lang.Integer |
getValue(int pollerIdx)
Returns the current value for the monitor for the nth poller.
|
int |
hashCode() |
java.lang.String |
toString() |
getConfig, getValue
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-monitorspublic java.lang.Integer getValue(int pollerIdx)
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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object