예제 #1
0
 public void initializeBeans()
 {
     alertRule    = new AlertRule(/*.省略参数.*/);    //省略一些初始化代码
     notification = new Notification(/*.省略参数.*/); //省略一些初始化代码
     alert        = new AlertOCP();
     alert.addAlertHandler(new TpsAlertHandler(alertRule, notification));
     alert.addAlertHandler(new ErrorAlertHandler(alertRule, notification));
     alert.addAlertHandler(new TimeoutAlertHandler(alertRule, notification));//新增逻辑
 }
예제 #2
0
 public ErrorAlertHandler(AlertRule rule, Notification notification) : base(rule, notification)
 {
 }
예제 #3
0
 public Alert(AlertRule rule, Notification notification)
 {
     this.rule         = rule;
     this.notification = notification;
 }
예제 #4
0
 public TimeoutAlertHandler(AlertRule rule, Notification notification) : base(rule, notification)
 {
 }