List of usage examples for javax.management AttributeChangeNotification ATTRIBUTE_CHANGE
String ATTRIBUTE_CHANGE
To view the source code for javax.management AttributeChangeNotification ATTRIBUTE_CHANGE.
Click Source Link
From source file:co.paralleluniverse.common.monitoring.PeriodicMonitor.java
@Override public MBeanNotificationInfo[] getNotificationInfo() { String[] types = new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE }; String _name = AttributeChangeNotification.class.getName(); String description = "An attribute of this MBean has changed"; MBeanNotificationInfo info = new MBeanNotificationInfo(types, _name, description); return new MBeanNotificationInfo[] { info }; }
From source file:com.cisco.oss.foundation.monitoring.ServerInfo.java
@Override public MBeanNotificationInfo[] getNotificationInfo() { String[] types = new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE }; String name = AttributeChangeNotification.class.getName(); String description = "An attribute of this MBean has changed"; MBeanNotificationInfo info = new MBeanNotificationInfo(types, name, description); return new MBeanNotificationInfo[] { info }; }
From source file:com.example.Hello.java
@Override public MBeanNotificationInfo[] getNotificationInfo() { String[] types = new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE }; String name = AttributeChangeNotification.class.getName(); String description = "An attribute of this MBean has changed"; MBeanNotificationInfo info = new MBeanNotificationInfo(types, name, description); return new MBeanNotificationInfo[] { info }; }
From source file:org.marketcetera.strategy.StrategyModule.java
/** * Create a new StrategyModule instance. * * @param inURN a <code>ModuleURN</code> value containing the instance URN for this strategy * @param inName a <code>String</code> value containing the user-specified, human-readable name for this strategy * @param inType a <code>Language</code> value containing the language type as which to execute this strategy * @param inSource a <code>File</code> value containing the source of the strategy code * @param inParameters a <code>Properties</code> value containing parameters to pass to the strategy. may be null. * @param inRouteOrdersToORS a <code>boolean</code> value indicating whether to route orders to the ORS or not * @param inOutputInstance a <code>ModuleURN</code> value containing a {@link DataReceiver} to which to pass outputs generated by this strategy. may be null. * @throws ModuleCreationException if the strategy cannot be created */// w w w .j av a2s . c o m private StrategyModule(ModuleURN inURN, String inName, Language inType, File inSource, Properties inParameters, boolean inRouteOrdersToORS, ModuleURN inOutputInstance) throws ModuleCreationException { super(inURN, false); name = inName; type = inType; source = inSource; parameters = inParameters; routeOrdersToORS = inRouteOrdersToORS; outputDestination = inOutputInstance; MBeanNotificationInfo notifyInfo = new MBeanNotificationInfo( new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE }, AttributeChangeNotification.class.getName(), BEAN_ATTRIBUTE_CHANGED.getText()); notificationDelegate = new NotificationBroadcasterSupport(notifyInfo); }