Package org.wso2.carbon.bam.util

Examples of org.wso2.carbon.bam.util.BAMException


    try {
      summaryDimension = BAMUtil.getSummaryDimensionDSClient();
      BAMCalendar yearStartTime = BAMCalendar.getYear(startTime);
      summaryDimension.addYearDimension(yearStartTime);
    } catch (Exception e) {
      throw new BAMException("Adding year dimension failed: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
      }
    }
View Full Code Here


      if (yd == null) {
        addYearDimension(startTime);
        yd = this.getYearDimension(startTime);
      }
      if (yd == null) {
        throw new BAMException("Adding year dimension failed: " + startTime.getBAMTimestamp());
      }
      summaryDimension.addQuarterDimension(BAMCalendar.getQuarter(startTime), null, yd.getId());
    } catch (Exception e) {
      throw new BAMException("Adding quarter dimension failed: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
      }
    }
View Full Code Here

      if (qd == null) {
        addQuarterDimension(startTime);
        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

                                        ConfigurationContext configCtx) throws BAMException {
        try {
            String serviceURL = ClientUtil.getBackendEPR(backendServerURL, BAM_SUMMARY_GENERATION_DS);
            summaryGenerationDSStub = new BAMSummaryGenerationDSStub(configCtx, serviceURL);
        } catch (Exception e) {
            throw new BAMException(e.getMessage(), e);
        }
    }
View Full Code Here

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

                                        ConfigurationContext configCtx) throws BAMException {
        try {
            String serviceURL = ClientUtil.getBackendEPR(backendServerURL, BAM_SUMMARY_GENERATION_DS);
            summaryGenerationDSStub = new BAMSummaryGenerationDSStub(configCtx, serviceURL);
        } catch (Exception e) {
            throw new BAMException(e.getMessage(), e);
        }
        ServiceClient client = summaryGenerationDSStub._getServiceClient();
        Options option = client.getOptions();
        option.setManageSession(true);
        option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);
View Full Code Here

                    }
                }
            }
        } catch (Exception e) {
            throw new BAMException("getMediationStatHourlySummaryDouble failed", e);
        }
        return valArr;
    }
View Full Code Here

                        }
                    }
                 }
            }
        } catch (Exception e) {
            throw new BAMException("getDataForMediation failed", e);
        }
        return valArr;
    }
View Full Code Here

      if (dd == null) {
        addDayDimension(startTime);
        dd = this.getDayDimension(startTime);
      }
      if (dd == null) {
        throw new BAMException("Adding hour dimension failed: " + startTime.getBAMTimestamp());
      }
      summaryDimension.addHourDimension(BAMCalendar.getHour(startTime), dd.getId());
    } catch (Exception e) {
      throw new BAMException("Adding hour dimension failed: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
      }
    }
View Full Code Here

                        }
                    }
                }
            }
        } catch (Exception e) {
            throw new BAMException("getMediationStatHourlySummaryInt failed", e);
        }
        return valArr;
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.bam.util.BAMException

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.