|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that must be implemented by components, which want to monitor critical situations during runtime. To report the measured value and forward it into the R/3's CCMS, an Alert has to be registered with the AlertManager For example:
class AnAlertImpl implements Alert{ [...] String AlertName = anAlertName; AlertManager.getInstance().register(this); }
AlertManager
Field Summary | |
static int |
DEFAULT_ALERT_VALUE
A value of -1 indicates that the alert will not be sent to the CCMS. |
Method Summary | |
void |
compare(int value)
As alert values could can vary within short periods, the developer takes responsibility, if an alert value has to be updated or not. |
java.lang.String |
getAlertName()
Return the name of the alert |
int |
getAlertValue()
Return the current value of the alert |
void |
setAlertName(java.lang.String alertName)
Set the name of the alert |
void |
setAlertValue(int value)
Set the current value of the alert |
Field Detail |
public static final int DEFAULT_ALERT_VALUE
Method Detail |
public void compare(int value)
int latestMeasuring = getLatestMesaring(); compare(latestMeasuring); public int compare(int value){ if (value > getAlertValue() ){ setAlertValue(value); } }
public int getAlertValue()
public void setAlertValue(int value)
public java.lang.String getAlertName()
public void setAlertName(java.lang.String alertName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |