com.sap.ip.me.api.ccms
Interface Alert


public interface Alert

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);
 	
 }
 

Author:
SAP
See Also:
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

DEFAULT_ALERT_VALUE

public static final int DEFAULT_ALERT_VALUE
A value of -1 indicates that the alert will not be sent to the CCMS.

See Also:
Constant Field Values
Method Detail

compare

public 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. For example:
 int latestMeasuring = getLatestMesaring();
 compare(latestMeasuring);
 			
 public int compare(int value){
 	if (value > getAlertValue() ){
 		setAlertValue(value);
 	} 
 } 
 


getAlertValue

public int getAlertValue()
Return the current value of the alert


setAlertValue

public void setAlertValue(int value)
Set the current value of the alert


getAlertName

public java.lang.String getAlertName()
Return the name of the alert


setAlertName

public void setAlertName(java.lang.String alertName)
Set the name of the alert



Copyright © 2005 SAP AG. All Rights Reserved.