|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonicsw.esb.service.common.metrics.NoOpMetric
public class NoOpMetric
Metric implementation that does nothing but hold a metric descriptor and write to the log.
Constructor Summary | |
---|---|
NoOpMetric(MetricDescriptor descriptor)
|
Method Summary | |
---|---|
MetricDescriptor |
getMetricDescriptor()
Returns the descriptor for this metric. |
long |
getRawValue()
Gets the current value of this metric. |
void |
incrementValue()
Increments the value for this metric by one. |
boolean |
isEnabled()
Indicates whether this metric currently enabled. |
void |
resetValue()
Resets the value of this metric to its initial value. |
void |
updateValue(long value)
Updates the value for this metric. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoOpMetric(MetricDescriptor descriptor)
Method Detail |
---|
public MetricDescriptor getMetricDescriptor()
SFCMetric
getMetricDescriptor
in interface SFCMetric
public long getRawValue()
SFCMetric
Note that some metrics are computed by the metrics manager from a raw
statistical value. This method returns the raw value rather than the
computed result. For example: calling getCurrentMetricValue
for an average will return the current total rather than the computed
average.
getRawValue
in interface SFCMetric
public void incrementValue()
SFCMetric
incrementValue
in interface SFCMetric
public boolean isEnabled()
SFCMetric
updateMetricValue
if providing the
value is expensive.
isEnabled
in interface SFCMetric
public void resetValue()
SFCMetric
resetValue
in interface SFCMetric
public void updateValue(long value)
SFCMetric
updateValue
in interface SFCMetric
value
- the new value
|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |