@Override
public synchronized void handleNotification(Notification notification, Object handback) {
assertNotNull(notification);
logger.info("Notification received {}", notification);
Map<String, String> notifUserData = (Map<String, String>) notification.getUserData();
if (notifUserData.get(JMXNotificationUserData.ALERT_LEVEL).equalsIgnoreCase("warning")) {
assertEquals(WARNING_LEVEL_MESSAGE, notification.getMessage());
++warnigAlertCount;
}
if (notifUserData.get(JMXNotificationUserData.ALERT_LEVEL).equalsIgnoreCase("severe")) {
assertEquals(SEVERE_LEVEL_MESSAGE, notification.getMessage());
++severAlertCount;
}
}
DistributedSystemDUnitTest.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:monarch
作者:
评论列表
文章目录