Package org.wso2.carbon.event.core.internal

Examples of org.wso2.carbon.event.core.internal.CarbonEventBroker.cleanUp()


    protected Calendar getLatestDailySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestEndpointStatSummaryPeriod(getTimeInterval(), endpoint);
        } finally {
            client.cleanup();
        }
    }

    protected Calendar getLatestHourlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
View Full Code Here


    protected Calendar getLatestHourlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestEndpointStatSummaryPeriod(getTimeInterval(), endpoint);
        } finally {
            client.cleanup();
        }
    }

    protected String getInstanceInfo() {
        return "Server: " + server.getServerURL() + ", Endpoint: " + endpoint.getName();
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Could not retrieve hourly summary for serverId: " + serverId
          + "endpoint: " + endpoint + direction + " start time: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public void deleteServerEndpointUserData(int serverId, String endpoint, String direction,
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Could not delete hourly summary for serverId: " + serverId + "endpoint: "
          + endpoint + direction + " end time: " + endTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public MediationSummaryStatistic getEndpointStatDailySummary(int serverId, String endpoint,
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Could not retrieve daily summary for serverId: " + serverId
          + "endpoint: " + endpoint + direction + " start time: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public MediationSummaryStatistic getEndpointStatMonthlySummary(int serverId, String endpoint,
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Could not retrieve monthly summary for serverId: " + serverId
          + "endpoint: " + endpoint + direction + " start time: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public MediationSummaryStatistic getEndpointStatQuarterlySummary(int serverId, String endpoint,
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Retrieving year dimension failed for timestamp "
          + BAMCalendar.getInstance(year).getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
      }
    }
  }

  public QuarterDimension getQuarterDimension(Calendar quater) throws BAMException {
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Retrieving quarter dimension failed for timestamp "
          + BAMCalendar.getInstance(quater).getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
      }
    }
  }

  public MonthDimension getMonthDimension(Calendar month) throws BAMException {
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Retrieving month dimension failed for timestamp "
          + BAMCalendar.getInstance(month).getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
      }
    }
  }

  public DayDimension getDayDimension(Calendar day) throws BAMException {
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Retrieving day dimension failed for timestamp "
          + BAMCalendar.getInstance(day).getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
      }
    }
  }

  public HourDimension getHourDimension(Calendar hour) throws BAMException {
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.