Monday, 28 January 2013

Alerter Interface and it's implementation in JCaps

Jar Name: com.stc.codegen.alerterapi
Interface Name: Alerter
Contents:
  public abstract void fatal(String paramString1, String paramString2) throws Exception;  
  public abstract void critical(String paramString);
  public abstract void major(String paramString);
  public abstract void minor(String paramString);
  public abstract void warning(String paramString);
  public abstract void info(String paramString);
  public abstract void custom(String paramString1, String paramString2, String paramString3); 

Jar Name: com.stc.codegen.alerterimpl
Class Name: AlerterImpl

Default Severity Level:
public void fatal(String msg, String componentName throws Exception
{
    sendAlert(msg, 0, componentName);

}
public void critical(String msg){
    sendAlert(msg, 1);

}
public void major(String msg){
    sendAlert(msg, 2);

}
public void minor(String msg){
    sendAlert(msg, 3);

}
public void warning(String msg){
    sendAlert(msg, 4);

}
public void info(String msg){
    sendAlert(msg, 5);

}
and also there is user defined custom severity 
javax.management.MBeanServer is invoked to run alerter

No comments:

Post a Comment