|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.altlinux.jabbix.JabbixMetric<T>
T - the type of the metric valuepublic class JabbixMetric<T>
A metric, the named value representing certain parameter of a system.
| Constructor Summary | |
|---|---|
JabbixMetric(String key,
Class<T> type,
T value)
Constructs a new metric with the specified name and value type. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" the metric. |
String |
getKey()
Returns the name of the metric. |
T |
getValue()
Returns the value of the metric. |
Class<T> |
getValueType()
Returns a class for the value type of the metric. |
String |
toString()
Returns the textual string representation of the value. |
void |
updateValue(Object value)
Updates the value of the metric. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JabbixMetric(String key,
Class<T> type,
T value)
key - the name of the metricvalue - the value of the metric| Method Detail |
|---|
public String getKey()
public T getValue()
public void updateValue(Object value)
throws ClassCastException
value - the new value
ClassCastException - if type of the new value is incompatible with the value type
of the metricMetricTable.updateMetric(JabbixMetric)public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic Class<T> getValueType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||