Examples of SLAThresholdEventAdapter


Examples of org.rioproject.impl.sla.SLAThresholdEventAdapter

        if(!slaPolicyHandlers.isEmpty()) {
            try {
                ObjectName objectName = JMXUtil.getObjectName(context, "", context.getServiceElement().getName());
                if(MBeanServerFactory.getMBeanServer().isRegistered(objectName)) {
                    slaAdapter =
                        new SLAThresholdEventAdapter(objectName,
                                                     context.getServiceBeanManager().getNotificationBroadcasterSupport());
                }
            } catch(Exception e) {
                logger.debug("Registering SLAThresholdEventAdapter", e);
            }
View Full Code Here

Examples of org.rioproject.impl.sla.SLAThresholdEventAdapter

    protected void initializeJMX(final ServiceBeanContext context) throws Exception {
        ObjectName objectName = createObjectName(context);
        MBeanServer mbeanServer = org.rioproject.impl.jmx.MBeanServerFactory.getMBeanServer();
        registerMBean(objectName, mbeanServer);
        //translate events to notifications
        slaThresholdEventAdapter = new SLAThresholdEventAdapter(objectName, getNotificationBroadcasterSupport());
        register(SLAThresholdEvent.getEventDescriptor(), slaThresholdEventAdapter, null, Long.MAX_VALUE);
        //register notification info
        mbeanNoticationInfoList.add(slaThresholdEventAdapter.getNotificationInfo());
        if(context.getServiceElement().forkService() &&
           System.getProperty(Constants.SERVICE_BEAN_EXEC_NAME)!=null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.