Package org.wso2.carbon.bam.util

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


     */
    public void updateMessageProperty(String value, int messagePropertyKeyId) throws BAMException {
        try {
            stub.updateMessageProperty(value, messagePropertyKeyId);
        } catch (RemoteException e) {
            throw new BAMException("updateMessageProperty failed", e);
        } catch (DataServiceFaultException e) {
            throw new BAMException("updateMessageProperty failed", e);
        }
    }
View Full Code Here


                propertyFilterDO.setAlias(data.getBamAlias()); // TODO: Include expression key to dbs return
                propertyFilterDO.setId(data.getBamId().intValue());
                propertyFilterDO.setExpression(data.getBamXpath());
            }
        } catch (RemoteException e) {
            throw new BAMException("getXpathData failed", e);
        } catch (DataServiceFaultException e) {
            throw new BAMException("getXpathData failed", e);
        }

        return propertyFilterDO;
    }
View Full Code Here

                messagePropertyDO.setMessageKeyId(Integer.parseInt(adbMessage.getMessageKeyId()));
                messagePropertyDO.setKey(adbMessage.getKey());
                messagePropertyDO.setValue(adbMessage.getValue());
            }
        } catch (RemoteException e) {
            throw new BAMException("getMessage failed", e);
        } catch (DataServiceFaultException e) {
            throw new BAMException("getMessage failed", e);
        }
        return messagePropertyDO;
    }
View Full Code Here

            throws BAMException {

        try {
            stub.updateMessageDump(messageBody, messageDir, ipAddress, messageDataKeyId);
        } catch (RemoteException e) {
            throw new BAMException("updateMessageStatus failed", e);
        } catch (DataServiceFaultException e) {
            throw new BAMException("updateMessageStatus failed", e);
        }
    }
View Full Code Here

            throws BAMException {

        try {
            stub.updateMessageStatus(messageStatus, messageDataKeyId);
        } catch (RemoteException e) {
            throw new BAMException("updateMessageStatus failed", e);
        } catch (DataServiceFaultException e) {
            throw new BAMException("updateMessageStatus failed", e);
        }
    }
View Full Code Here

            val = maxStatThisHour.getFaultCount() - maxStatPrevHour.getFaultCount();
            stat.setFaultCount(val >= 0? val : maxStatThisHour.getFaultCount());
            }
      return stat;
    } catch (Exception e) {
      throw new BAMException("Could not retrieve hourly summary for service: " + serviceId+ " start time: " +
                    startTime.getBAMTimestamp(), e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
View Full Code Here

        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      return serviceSummaryDSClient.getServiceStatDailySummary(serviceId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not retrieve daily summary for service: " + serviceId+ " start time: " +
                    startTime.getBAMTimestamp(), e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
View Full Code Here

        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      return serviceSummaryDSClient.getServiceStatMonthlySummary(serviceId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not retrieve monthly summary for service: " + serviceId+ " start time: " +
                    startTime.getBAMTimestamp(), e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
View Full Code Here

        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      return serviceSummaryDSClient.getServiceStatQuarterlySummary(serviceId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not retrieve quarterly summary for service: " + serviceId+ " start time: " +
                    startTime.getBAMTimestamp(), e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
View Full Code Here

        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      return serviceSummaryDSClient.getServiceStatYearlySummary(serviceId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not retrieve yearly summary for service: " + serviceId+ " start time: " +
                    startTime.getBAMTimestamp(), e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
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.