Package org.rioproject.impl.watch

Examples of org.rioproject.impl.watch.ThresholdManager


                logger.trace("[{}] SLA [{}] correlates to a MeasurableCapability", elem.getName(), identifier);
                try {
                    /* Load the SLA PolicyHandler and set attributes */
                    handler = createSLAPolicyHandler(sla, null);

                    ThresholdManager tMgr = new BoundedThresholdManager(mCap.getId());
                    tMgr.setThresholdValues(sla);
                    handler.setThresholdManager(tMgr);
                    mCap.addSecondaryThresholdManager(tMgr);
                    thresholdManagerReg.put(tMgr, mCap);
                    logger.trace("[{}] SLA ID [{}], associated to MeasurableCapability={}, SLAPolicyHandler={}",
                                 elem.getName(), identifier, mCap.getClass().getName(), handler.getClass().getName());
View Full Code Here


     */
    private void removeSLAPolicyHandler(final SLAPolicyHandler slaPolicyHandler) {
        slaPolicyHandlers.remove(slaPolicyHandler);
        slaPolicyHandler.disconnect();
        context.getWatchRegistry().removeThresholdListener(slaPolicyHandler.getID(), slaPolicyHandler);
        ThresholdManager tMgr = slaPolicyHandler.getThresholdManager();
        MeasurableCapability mCap = thresholdManagerReg.remove(tMgr);
        if(mCap != null) {
            mCap.removeSecondaryThresholdManager(tMgr);
        }
    }
View Full Code Here

TOP

Related Classes of org.rioproject.impl.watch.ThresholdManager

Copyright © 2018 www.massapicom. 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.