new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A GemFire manager, cache, or other member has joined this distributed system."); new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A GemFire manager, cache, or other member has left the distributed system."); new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A member of this distributed system has crashed instead of leaving cleanly."); new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A member of this distributed system has generated an alert."); new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A GemFire manager, cache, or other member has joined this distributed system."); new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A cache got created on a member of this distributed system."); notificationsInfo[6] = new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A cache is closed on a member of this distributed system."); new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A region is created in a cache on a member of this distributed system."); new MBeanNotificationInfo(notificationTypes, Notification.class.getName(), "A region was removed from a cache on a member of this distributed system.");
/** * 暴露通知信息 * * @return */ public MBeanNotificationInfo[] getNotificationInfo() { return new MBeanNotificationInfo[]{ new MBeanNotificationInfo(new String[]{ATTRIBUTE_CHANGE}, "Data Change Notification", "数据改变通知") }; } }
public static MBeanNotificationInfo[] getDefaultNotificationInfo() { String[] types = new String[] {NOTIFY_INIT, NOTIFY_CONNECT, NOTIFY_ABANDON, SLOW_QUERY_NOTIFICATION, FAILED_QUERY_NOTIFICATION, SUSPECT_ABANDONED_NOTIFICATION}; String name = Notification.class.getName(); String description = "A connection pool error condition was met."; MBeanNotificationInfo info = new MBeanNotificationInfo(types, name, description); return new MBeanNotificationInfo[] {info}; }
@Override public MBeanNotificationInfo[] getNotificationInfo() { // XXX: temporary hack MBeanNotificationInfo status = new MBeanNotificationInfo(new String[] { "jmx.attribute.change" }, "status", "status attribute changes"); return new MBeanNotificationInfo[] { status }; }
private static MBeanNotificationInfo[] getBroadcastInfo() { String type = Notification.class.getCanonicalName(); MBeanNotificationInfo info1 = new MBeanNotificationInfo(new String[]{FEATURE_EVENT_EVENT_TYPE}, type, "Some features notification"); MBeanNotificationInfo info2 = new MBeanNotificationInfo(new String[]{REPOSITORY_EVENT_EVENT_TYPE}, type, "Some repository notification"); return new MBeanNotificationInfo[]{info1, info2}; }
public static MBeanNotificationInfo[] getDefaultNotificationInfo() { String[] types = new String[] {NOTIFY_INIT, NOTIFY_CONNECT, NOTIFY_ABANDON, SLOW_QUERY_NOTIFICATION, FAILED_QUERY_NOTIFICATION, SUSPECT_ABANDONED_NOTIFICATION, POOL_EMPTY, SUSPECT_RETURNED_NOTIFICATION}; String name = Notification.class.getName(); String description = "A connection pool error condition was met."; MBeanNotificationInfo info = new MBeanNotificationInfo(types, name, description); return new MBeanNotificationInfo[] {info}; }
@Override public MBeanNotificationInfo[] getNotificationInfo() { String[] notificationTypes = new String[] { SbbUsageMBean.USAGE_NOTIFICATION_TYPE }; MBeanNotificationInfo[] mbeanNotificationInfo = new MBeanNotificationInfo[] { new MBeanNotificationInfo( notificationTypes, UsageNotification.class.getName(), "JAIN SLEE 1.0 Usage MBean notification") }; return mbeanNotificationInfo; }
public MBeanNotificationInfo[] getNotificationInfo() { return new MBeanNotificationInfo[] {new MBeanNotificationInfo( new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE }, AttributeChangeNotification.class.getName(), "Generated when the ObjectStore MBean is registered and destroyed") }; } }
@Override public MBeanNotificationInfo[] getNotificationInfo() { String[] types = new String[]{ AttributeChangeNotification.ATTRIBUTE_CHANGE }; String notifName = AttributeChangeNotification.class.getName(); String description = "An attribute of this MBean has changed"; MBeanNotificationInfo info = new MBeanNotificationInfo(types, notifName, description); return new MBeanNotificationInfo[]{info}; }
@Override public MBeanNotificationInfo getNotificationInfo() { return new MBeanNotificationInfo(new String[] { DEFECT_NAME }, AsyncExecutorThreadPoolDefectCreator.class.getName(), DEFECT_MSG); }
/** * returns Notifications sent by this MBean. */ @Override public MBeanNotificationInfo[] getNotificationInfo() { String[] notificationTypes = new String[] { MonitorNotification.THRESHOLD_VALUE_EXCEEDED }; String name = MonitorNotification.class.getName(); String description = "Either Message count or Queue depth or Message size has reached threshold high value"; MBeanNotificationInfo info1 = new MBeanNotificationInfo(notificationTypes, name, description); return new MBeanNotificationInfo[] { info1 }; }
@Override public MBeanNotificationInfo[] getNotificationInfo() { String[] types = new String[]{ AttributeChangeNotification.ATTRIBUTE_CHANGE }; String notifName = AttributeChangeNotification.class.getName(); String description = "An attribute of this MBean has changed"; MBeanNotificationInfo info = new MBeanNotificationInfo(types, notifName, description); return new MBeanNotificationInfo[]{info}; }
@Override public MBeanNotificationInfo[] getNotificationInfo() { String[] types = new String[]{AttributeChangeNotification.ATTRIBUTE_CHANGE}; String name = AttributeChangeNotification.class.getName(); String description = "Number of sessions in Kaazing Enterprise Gateway has changed"; MBeanNotificationInfo info = new MBeanNotificationInfo(types, name, description); return new MBeanNotificationInfo[]{info}; } }
@Override public MBeanNotificationInfo getNotificationInfo() { return new MBeanNotificationInfo(new String[] { DEFECT_NAME }, ServiceClientPoolExhaustedDefectCreator.class.getName(), DEFECT_MSG); }
@Override public MBeanNotificationInfo[] getNotificationInfo() { return new MBeanNotificationInfo[]{ new MBeanNotificationInfo( new String[]{AttributeChangeNotification.ATTRIBUTE_CHANGE}, AttributeChangeNotification.class.getName(), ServerLogger.ROOT_LOGGER.processStateChangeNotificationDescription())}; }
@Override public MBeanNotificationInfo[] getNotificationInfo() { return new MBeanNotificationInfo[]{ new MBeanNotificationInfo( new String[]{AttributeChangeNotification.ATTRIBUTE_CHANGE}, AttributeChangeNotification.class.getName(), ServerLogger.ROOT_LOGGER.processStateChangeNotificationDescription())}; }
private static MBeanNotificationInfo[] getNotificationInfos() { return new MBeanNotificationInfo[]{ new MBeanNotificationInfo( new String[]{NOTIFICATION_TYPE_DEFINITION_UPDATED}, Notification.class.getName(), getJMXText(RECOURCE_NAME_MBEAN_NOTIFICATION_DESCRIPTION)) }; }
@Override public MBeanNotificationInfo[] getNotificationInfo() { CoreNotificationType[] values = CoreNotificationType.values(); String[] names = new String[values.length]; for (int i = 0; i < values.length; i++) { names[i] = values[i].toString(); } return new MBeanNotificationInfo[]{new MBeanNotificationInfo(names, this.getClass().getName(), "Notifications emitted by a Core Server")}; }
public MBeanNotificationInfo[] getNotificationInfo() { CoreNotificationType[] values = CoreNotificationType.values(); String[] names = new String[values.length]; for (int i = 0; i < values.length; i++) { names[i] = values[i].toString(); } return new MBeanNotificationInfo[]{new MBeanNotificationInfo(names, this.getClass().getName(), "Notifications emitted by a Core Server")}; }
private static MBeanNotificationInfo getNotificationInfo(final NotificationInfo n) { final String description = getDescription(n.description(), "-"); return new MBeanNotificationInfo(n.types(), n.notificationClass().getName(), description, new ImmutableDescriptor(n.descriptorFields())); }