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() |
java.util.List<ThresholdConditionGuard> |
getGuards() |
java.lang.String |
getLastValue() |
ThresholdStatus |
getPreviousStatus() |
IStats |
getStats() |
ThresholdStatus |
getStatus() |
long |
getStatusChangeTimestamp() |
java.lang.String |
getStatusString() |
boolean |
isActivated()
Retuns true if this tieable has been activated.
|
void |
setStatusChangeTimestamp(long statusChangeTimestamp) |
void |
tieToProvider(CustomThresholdProvider aCustomThresholdProvider) |
void |
tieToStats(IStats aStatsObject)
Tie to a concreate stats object.
|
ThresholdConfig |
toConfigObject()
This method allows to recreate proper configuration object for this threshold.
|
java.lang.String |
toString() |
void |
update() |
getDefinition, getId, getName, getTargetStatName, isCustomclone, 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 tieToProvider(CustomThresholdProvider aCustomThresholdProvider)
public 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 java.util.List<ThresholdConditionGuard> getGuards()
public ThresholdStatus getStatus()
public java.lang.String getStatusString()
getStatusString in interface ThresholdMBeanpublic IStats getStats()
public java.lang.String getLastValue()
public void update()
update in interface IntervalUpdateablepublic boolean isActivated()
TieableisActivated in interface Tieablepublic java.lang.String toString()
toString in class java.lang.Objectpublic long getStatusChangeTimestamp()
public void setStatusChangeTimestamp(long statusChangeTimestamp)
public int getFlipCount()
public ThresholdConfig toConfigObject()
public ThresholdStatus getPreviousStatus()
Copyright © 2010-2020 anotheria.net. All Rights Reserved.