Package org.wso2.carbon.bam.common.dataobjects.mediation

Examples of org.wso2.carbon.bam.common.dataobjects.mediation.MediationSummaryStatistic



    public MediationSummaryStatistic getProxyServiceStatDailySummary(int serverId, String proxyService, String direction,
                                                                     BAMCalendar startTime, BAMCalendar endTime)
            throws BAMException {
        MediationSummaryStatistic msst = new MediationSummaryStatistic();

        try {
            MedSummaryStat[] stat = summaryGenerationDSStub.getProxyStatDailySummary(serverId, proxyService, direction, startTime,
                    endTime);
View Full Code Here


    }

    public MediationSummaryStatistic getProxyServiceStatMonthlySummary(int serverId, String proxyService, String direction,
                                                                       BAMCalendar startTime, BAMCalendar endTime)
            throws BAMException {
        MediationSummaryStatistic msst = new MediationSummaryStatistic();
        try {
            MedSummaryStat[] stat = summaryGenerationDSStub.getProxyStatMonthlySummary(serverId, proxyService, direction,
                    startTime, endTime);

            if (stat != null) {
View Full Code Here

    }

    public MediationSummaryStatistic getProxyServiceStatQuarterlySummary(int serverId, String proxyService, String direction,
                                                                         BAMCalendar startTime, BAMCalendar endTime)
            throws BAMException {
        MediationSummaryStatistic msst = new MediationSummaryStatistic();
        try {
            MedSummaryStat[] stat = summaryGenerationDSStub.getProxyStatQuarterlySummary(serverId, proxyService, direction,
                    startTime, endTime);

            if (stat != null) {
View Full Code Here

    }

    public MediationSummaryStatistic getProxyServiceStatYearlySummary(int serverId, String proxyService, String direction,
                                                                      BAMCalendar startTime, BAMCalendar endTime)
            throws BAMException {
        MediationSummaryStatistic msst = new MediationSummaryStatistic();
        try {
            MedSummaryStat[] stat = summaryGenerationDSStub.getProxyStatYearlySummary(serverId, proxyService, direction,
                    startTime, endTime);

            if (stat != null) {
View Full Code Here


    public MediationSummaryStatistic getSequenceStatDailySummary(int serverId, String sequence, String direction,
                                                                 BAMCalendar startTime, BAMCalendar endTime)
            throws BAMException {
        MediationSummaryStatistic msst = new MediationSummaryStatistic();
        try {
            MedSummaryStat[] stat = summaryGenerationDSStub.getSequenceStatDailySummary(serverId, sequence, direction, startTime,
                    endTime);

            if (stat != null) {
View Full Code Here

    }

    public MediationSummaryStatistic getSequenceStatMonthlySummary(int serverId, String sequence, String direction,
                                                                   BAMCalendar startTime, BAMCalendar endTime)
            throws BAMException {
        MediationSummaryStatistic msst = new MediationSummaryStatistic();
        try {
            MedSummaryStat[] stat = summaryGenerationDSStub.getSequenceStatMonthlySummary(serverId, sequence, direction,
                    startTime, endTime);

            if (stat != null) {
View Full Code Here

    }

    public MediationSummaryStatistic getSequenceStatQuarterlySummary(int serverId, String sequence, String direction,
                                                                     BAMCalendar startTime, BAMCalendar endTime)
            throws BAMException {
        MediationSummaryStatistic msst = new MediationSummaryStatistic();
        try {
            MedSummaryStat[] stat = summaryGenerationDSStub.getSequenceStatQuarterlySummary(serverId, sequence, direction,
                    startTime, endTime);

            if (stat != null) {
View Full Code Here

    }

    public MediationSummaryStatistic getSequenceStatYearlySummary(int serverId, String sequence, String direction,
                                                                  BAMCalendar startTime, BAMCalendar endTime)
            throws BAMException {
        MediationSummaryStatistic msst = new MediationSummaryStatistic();
        try {
            MedSummaryStat[] stat = summaryGenerationDSStub.getSequenceStatYearlySummary(serverId, sequence, direction,
                    startTime, endTime);

            if (stat != null) {
View Full Code Here

                spm.addHourDimension(loHour);
                hd = spm.getHourDimension(loHour);
            }

            //TODO: flag
            MediationSummaryStatistic stat = spm.getSequenceStatHourlySummary(getServer().getId(),
                    getSequence().getName(), getSequence().getDirection(), loHour, hiHour);
            stat.setName(getSequence().getName());
            stat.setTimeDimensionId(hd.getId());
            stat.setServerId(getServer().getId());
            stat.setDirection(getSequence().getDirection());

            SummaryPersistenceManager.getInstance().addSequenceStatHourlySummary(stat);

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

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

            MediationSummaryStatistic stat = spm.getSequenceStatDailySummary(getServer().getId(),
                    getSequence().getName(), getSequence().getDirection(), loDay, hiDay);
            stat.setName(getSequence().getName());
            stat.setTimeDimensionId(dd.getId());
            stat.setServerId(getServer().getId());
            stat.setDirection(getSequence().getDirection());

            SummaryPersistenceManager.getInstance().addSequenceStatDailySummary(stat);
        } catch (BAMException e) {
            if (log.isErrorEnabled()) {
                log.error("Error while running daily summary generator for sequence: " + getSequence()
View Full Code Here

TOP

Related Classes of org.wso2.carbon.bam.common.dataobjects.mediation.MediationSummaryStatistic

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.