public class Threshold extends AbstractTieable<ThresholdDefinition> implements Tieable, ThresholdMBean
| Constructor and Description |
|---|
Threshold(ThresholdDefinition aDefinition) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGuard(ThresholdConditionGuard guard) |
void |
addLongGuardLineDownUp(long green,
long yellow,
long orange,
long red,
long purple) |
void |
addLongGuardLineUpDown(long green,
long yellow,
long orange,
long red,
long purple) |
int |
getFlipCount() |
List<ThresholdConditionGuard> |
getGuards() |
String |
getLastValue() |
ThresholdStatus |
getPreviousStatus() |
IStats |
getStats() |
ThresholdStatus |
getStatus() |
long |
getStatusChangeTimestamp() |
String |
getStatusString() |
boolean |
isActivated()
Retuns true if this tieable has been activated.
|
void |
setStatusChangeTimestamp(long statusChangeTimestamp) |
void |
tieToStats(IStats aStatsObject)
Tie to a concreate stats object.
|
ThresholdConfig |
toConfigObject()
This method allows to recreate proper configuration object for this threshold.
|
String |
toString() |
void |
update() |
getDefinition, getId, getName, getTargetStatNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefinition, getId, getName, getTargetStatNamepublic Threshold(ThresholdDefinition aDefinition)
public void tieToStats(IStats aStatsObject)
TieabletieToStats in interface Tieablepublic void addGuard(ThresholdConditionGuard guard)
public void addLongGuardLineDownUp(long green,
long yellow,
long orange,
long red,
long purple)
public void addLongGuardLineUpDown(long green,
long yellow,
long orange,
long red,
long purple)
public List<ThresholdConditionGuard> getGuards()
public ThresholdStatus getStatus()
public String getStatusString()
getStatusString in interface ThresholdMBeanpublic IStats getStats()
public String getLastValue()
public void update()
update in interface IntervalUpdateablepublic boolean isActivated()
TieableisActivated in interface Tieablepublic long getStatusChangeTimestamp()
public void setStatusChangeTimestamp(long statusChangeTimestamp)
public int getFlipCount()
public ThresholdConfig toConfigObject()
public ThresholdStatus getPreviousStatus()
Copyright © 2010-2017 anotheria.net. All Rights Reserved.