Package org.rhq.enterprise.server.purge

Examples of org.rhq.enterprise.server.purge.PurgeManagerLocal


            LOG.info("Data Purge Job FINISHED [" + duration + "]ms");
        }
    }

    private void purgeEverything(Properties systemConfig) {
        PurgeManagerLocal purgeManager = LookupUtil.getPurgeManager();
        purgeCallTimeData(purgeManager, systemConfig);
        purgeEventData(purgeManager, systemConfig);
        purgeAlertData(purgeManager, systemConfig);
        purgeUnusedAlertDefinitions(LookupUtil.getAlertDefinitionManager());
        purgeOrphanedAlertConditions(LookupUtil.getAlertConditionManager());
View Full Code Here


    public void calculateOOBs(Iterable<AggregateNumericMetric> oneHourAggregates) {
        LOG.info("Auto-calculation of OOBs starting");

        Subject overlord = LookupUtil.getSubjectManager().getOverlord();
        MeasurementOOBManagerLocal manager = LookupUtil.getOOBManager();
        PurgeManagerLocal purgeManager = LookupUtil.getPurgeManager();
        SystemManagerLocal systemManager = LookupUtil.getSystemManager();

        // purge OOBs whose baseline just got recalculated
        // For now just assume that our system is fast, so a cutoff of 30mins is ok,
        // as the calculate baseline job runs hourly
        long cutOff = System.currentTimeMillis() - (30L * 60L * 1000L);

        long timeStart = System.currentTimeMillis();

        purgeManager.removeOutdatedOOBs(cutOff);

        // clean up
        systemManager.vacuum(overlord, new String[] { "RHQ_MEASUREMENT_OOB" });

        // Now calculate the fresh OOBs
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.purge.PurgeManagerLocal

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.