Package org.wso2.carbon.bam.common.clients

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


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

  public void addYearDimension(BAMCalendar startTime) throws BAMException {
View Full Code Here


      summaryDimension.addYearDimension(yearStartTime);
    } catch (Exception e) {
      throw new BAMException("Adding year dimension failed: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (summaryDimension != null) {
          summaryDimension.cleanup();
      }
    }
  }

  public void addQuarterDimension(BAMCalendar startTime) throws BAMException {
View Full Code Here

      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();
      }
    }
  }

  public void addMonthDimension(BAMCalendar startTime) throws BAMException {
View Full Code Here

      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();
      }
    }
  }

  public void addDayDimension(BAMCalendar startTime) throws BAMException {
View Full Code Here

      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();
      }
    }
  }

  public void addHourDimension(BAMCalendar startTime) throws BAMException {
View Full Code Here

      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();
      }
    }
  }

  public SummaryStatistic getOperationStatHourlySummary(int opId, BAMCalendar startTime, BAMCalendar endTime)
View Full Code Here

        if (proxyURL == null) {
            throw new DiscoveryException("The discovery proxy URL is not specified");
        }
        DiscoveryClient client = new DiscoveryClient(cfgCtx, proxyURL);
        TargetService service = client.resolve(uuid);
        client.cleanup();
        return getEndpointFromService(service, protocol);
    }
}
View Full Code Here

            client.engageModule("rampart");
            client.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
                    getPolicy(proxy.getPolicy(), registry));
        }
        TargetService[] services = client.probe(types, scopes, pd.getRule());
        client.cleanup();
        return services;
    }

    /**
     * Resolve the specified service ID against the given proxy
View Full Code Here

            client.engageModule("rampart");
            client.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
                    getPolicy(proxy.getPolicy(), registry));
        }
        TargetService service = client.resolve(id);
        client.cleanup();
        return service;
    }

    /**
     * Check whether service discovery is enabled in the configuration. This method first checks
View Full Code Here

        //unregister the service before cleaning up.
        this.eventServiceRegistration.unregister();

        try {
            carbonEventBroker.cleanUp();
        } catch (EventBrokerException e) {
            log.error("Can not clean up the carbon broker ", e);
        }
    }
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.