Examples of SummaryStatistic


Examples of org.wso2.carbon.bam.common.dataobjects.stats.SummaryStatistic

            if (md == null) {
                spm.addMonthDimension(loMonth);
                md = spm.getMonthDimension(loMonth);
            }

            SummaryStatistic stat = spm.getServerStatMonthlySummary(this.getServer().getId(), loMonth, hiMonth);
            if (stat != null) {
                stat.setTypeId(this.getServer().getId());
                stat.setTimeDimensionId(md.getId());
                SummaryPersistenceManager.getInstance().addServerStatMonthlySummary(stat);
            }


        } catch (BAMException e) {
View Full Code Here

Examples of org.wso2.carbon.bam.common.dataobjects.stats.SummaryStatistic

            if (qd == null) {
                spm.addQuarterDimension(loQuarter);
                qd = spm.getQuarterDimension(loQuarter);
            }

            SummaryStatistic stat = spm.getServerStatQuarterlySummary(this.getServer().getId(), loQuarter, hiQuarter);
            if (stat != null) {
                stat.setTypeId(this.getServer().getId());
                stat.setTimeDimensionId(qd.getId());
                SummaryPersistenceManager.getInstance().addServerStatQuarterlySummary(stat);
            }

        } catch (BAMException e) {
            if (log.isErrorEnabled()) {
View Full Code Here

Examples of org.wso2.carbon.bam.common.dataobjects.stats.SummaryStatistic

            if (md == null) {
                spm.addYearDimension(loYear);
                md = spm.getYearDimension(loYear);
            }

            SummaryStatistic stat = spm.getServerStatYearlySummary(this.getServer().getId(), loYear, hiYear);
            if (stat != null) {
                stat.setTypeId(this.getServer().getId());
                stat.setTimeDimensionId(md.getId());
                SummaryPersistenceManager.getInstance().addServerStatYearlySummary(stat);
            }
        } catch (BAMException e) {
            if (log.isErrorEnabled()) {
                log.error("Error while running yearly summary generator for server: " + this.getServer().getServerURL(), e);
View Full Code Here

Examples of org.wso2.carbon.bam.common.dataobjects.stats.SummaryStatistic

            if (md == null) {
                spm.addMonthDimension(loMonth);
                md = spm.getMonthDimension(loMonth);
            }

            SummaryStatistic stat = spm.getOperationStatMonthlySummary(this.getOperation().getOperationID(), loMonth, hiMonth);
            if (stat != null) {
                stat.setTypeId(this.getOperation().getOperationID());
                stat.setTimeDimensionId(md.getId());
                SummaryPersistenceManager.getInstance().addOperationStatMonthlySummary(stat);
            }

        } catch (BAMException e) {
            if (log.isErrorEnabled()) {
View Full Code Here

Examples of org.wso2.carbon.bam.common.dataobjects.stats.SummaryStatistic

            if (qd == null) {
                spm.addQuarterDimension(loQuarter);
                qd = spm.getQuarterDimension(loQuarter);
            }

            SummaryStatistic stat = spm.getOperationStatQuarterlySummary(this.getOperation().getOperationID(), loQuarter, hiQuarter);
            if (stat != null) {
                stat.setTypeId(this.getOperation().getOperationID());
                stat.setTimeDimensionId(qd.getId());
                SummaryPersistenceManager.getInstance().addOperationStatQuarterlySummary(stat);
            }
        } catch (BAMException e) {
            if (log.isErrorEnabled()) {
                log.error("Error while running quarterly summary generator for operation: " + getOperation().getName()
View Full Code Here

Examples of org.wso2.carbon.bam.common.dataobjects.stats.SummaryStatistic

            if (qd == null) {
                spm.addYearDimension(loYear);
                qd = spm.getYearDimension(loYear);
            }

            SummaryStatistic stat = spm.getOperationStatYearlySummary(this.getOperation().getOperationID(), loYear, hiYear);
            if (stat != null) {
                stat.setTypeId(this.getOperation().getOperationID());
                stat.setTimeDimensionId(qd.getId());
                SummaryPersistenceManager.getInstance().addOperationStatYearlySummary(stat);
            }

        } catch (BAMException e) {
            if (log.isErrorEnabled()) {
View Full Code Here

Examples of org.wso2.carbon.bam.common.dataobjects.stats.SummaryStatistic

            if (hd == null) {
                spm.addHourDimension(loHour);
                hd = spm.getHourDimension(loHour);
            }

            SummaryStatistic stat = spm.getOperationStatHourlySummary(this.getOperation().getOperationID(), loHour, hiHour);
            if (stat != null) {
                stat.setTypeId(this.getOperation().getOperationID());
                stat.setTimeDimensionId(hd.getId());
                SummaryPersistenceManager.getInstance().addOperationStatHourlySummary(stat);
            }

            TimeRange retention = BAMPersistenceManager.getPersistenceManager(BAMUtil.getRegistry()).getDataRetentionPeriod();
View Full Code Here

Examples of org.wso2.carbon.bam.common.dataobjects.stats.SummaryStatistic

            if (dd == null) {
                spm.addDayDimension(loDay);
                dd = spm.getDayDimension(loDay);
            }

            SummaryStatistic stat = spm.getOperationStatDailySummary(this.getOperation().getOperationID(), loDay, hiDay);
            if (stat != null) {
                stat.setTypeId(this.getOperation().getOperationID());
                stat.setTimeDimensionId(dd.getId());
                SummaryPersistenceManager.getInstance().addOperationStatDailySummary(stat);
            }
        } catch (BAMException e) {
            if (log.isErrorEnabled()) {
                log.error("Error while running daily summary generator for operation: " + getOperation().getName()
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.