Examples of addMonthDimension()


Examples of org.wso2.carbon.bam.common.clients.SummaryDimensionDSClient.addMonthDimension()

        qd = this.getQuarterDimension(startTime);
      }
      if (qd == null) {
        throw new BAMException("Adding quarter dimension failed: " + startTime.getBAMTimestamp());
      }
      summaryDimension.addMonthDimension(BAMCalendar.getMonth(startTime), null, qd.getId());
    } catch (Exception e) {
      throw new BAMException("Adding month dimension failed: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
View Full Code Here

Examples of org.wso2.carbon.bam.core.summary.SummaryPersistenceManager.addMonthDimension()

        try {
            SummaryPersistenceManager spm = SummaryPersistenceManager.getInstance();

            MonthDimension md = spm.getMonthDimension(start);
            if (md == null) {
                spm.addMonthDimension(start);
                md = spm.getMonthDimension(start);
            }
           
            BandwidthStatValue[] statValues = client.getStub().getDataForMonthlySummary(
                    server.getId(), start, end);
View Full Code Here

Examples of org.wso2.carbon.bam.core.summary.SummaryPersistenceManager.addMonthDimension()

        long regHistoryBandwidth=0;
        try {
            SummaryPersistenceManager spm = SummaryPersistenceManager.getInstance();
            MonthDimension md = spm.getMonthDimension(start);
            if (md == null) {
                spm.addMonthDimension(start);
                md = spm.getMonthDimension(start);
            }
           
            //Get the usage
            BandwidthUsageValue[] usages;
View Full Code Here

Examples of org.wso2.carbon.bam.core.summary.SummaryPersistenceManager.addMonthDimension()

        try {
            SummaryPersistenceManager spm = SummaryPersistenceManager.getInstance();

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

            SummaryStatistic stat = spm.getServiceStatMonthlySummary(this.getService().getId(), loMonth, hiMonth);
            if (stat != null) {
View Full Code Here

Examples of org.wso2.carbon.bam.core.summary.SummaryPersistenceManager.addMonthDimension()

        try {
            SummaryPersistenceManager spm = SummaryPersistenceManager.getInstance();

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

            MediationSummaryStatistic stat = spm.getSequenceStatMonthlySummary(getServer().getId(),
                    getSequence().getName(), getSequence().getDirection(), loMonth, hiMonth);
View Full Code Here

Examples of org.wso2.carbon.bam.core.summary.SummaryPersistenceManager.addMonthDimension()

        try {
            SummaryPersistenceManager spm = SummaryPersistenceManager.getInstance();

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

            SummaryStatistic stat = spm.getServerStatMonthlySummary(this.getServer().getId(), loMonth, hiMonth);
            if (stat != null) {
View Full Code Here

Examples of org.wso2.carbon.bam.core.summary.SummaryPersistenceManager.addMonthDimension()

        try {
            SummaryPersistenceManager spm = SummaryPersistenceManager.getInstance();

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

            SummaryStatistic stat = spm.getOperationStatMonthlySummary(this.getOperation().getOperationID(), loMonth, hiMonth);
            if (stat != null) {
View Full Code Here

Examples of org.wso2.carbon.bam.core.summary.SummaryPersistenceManager.addMonthDimension()

        try {
            SummaryPersistenceManager spm = SummaryPersistenceManager.getInstance();

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

            MediationSummaryStatistic stat = spm.getProxyServiceStatMonthlySummary(getServer().getId(),
                    getProxyService().getName(), getProxyService().getDirection(), loMonth, hiMonth);
View Full Code Here

Examples of org.wso2.carbon.bam.core.summary.SummaryPersistenceManager.addMonthDimension()

        try {
            SummaryPersistenceManager spm = SummaryPersistenceManager.getInstance();

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

            MediationSummaryStatistic stat = spm.getEndpointStatMonthlySummary(getServer().getId(),
                    getEndpoint().getName(), getEndpoint().getDirection(), loMonth, hiMonth);
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.