Examples of BAMDataCollectionDSClient


Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

public class BAMDataServiceAdmin {
    private static final Log log = LogFactory.getLog(BAMDataServiceAdmin.class); //TODO: Improve logging in this class

    public void addServerStatistics(ServerStatisticsDO statisticsDO) throws BAMException {
      BAMDataCollectionDSClient client = null;
      try {
        client = BAMUtil.getBAMDataCollectionDSClient();
        client.addServerData(statisticsDO);
      } catch (BAMException e) {
        throw e;
      } finally {
      if (client != null) {
          client.cleanup();
      }
    }
    }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

        } else {
            serviceDO = pm.getService(statisticsDO.getServerID(), statisticsDO.getServiceName());
            statisticsDO.setServiceID(serviceDO.getId());
        }

        BAMDataCollectionDSClient client = null;
      try {
        client = BAMUtil.getBAMDataCollectionDSClient();
        client.addServiceData(statisticsDO);
      } finally {
      if (client != null) {
          client.cleanup();
      }
    }
    }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

        } else {
            operationDO = pm.getOperation(statisticsDO.getServiceID() ,statisticsDO.getOperationName());
            statisticsDO.setOperationID(operationDO.getOperationID());
        }

        BAMDataCollectionDSClient client = null;
      try {
        client = BAMUtil.getBAMDataCollectionDSClient();
        client.addOperationData(statisticsDO);
      } finally {
      if (client != null) {
          client.cleanup();
      }
    }
    }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

      }
    }
    }

    public void addServerData(ServerStatisticsDO statisticsDO) throws BAMException {
        BAMDataCollectionDSClient client = null;
      try {
        client = BAMUtil.getBAMDataCollectionDSClient();
        client.addServerData(statisticsDO);
      } finally {
      if (client != null) {
          client.cleanup();
      }
    }
    }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

      }
    }
    }

    public void addServerUserDefinedData(ServerUserDefinedDO statisticsDO) throws BAMException {
        BAMDataCollectionDSClient client = null;
      try {
        client = BAMUtil.getBAMDataCollectionDSClient();
        client.addServerUserDefinedData(statisticsDO);
      } finally {
      if (client != null) {
          client.cleanup();
      }
    }
    }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

    /*
       * Add activity to the DB
       */
      public void addActivityData(ActivityDO activityDO) throws BAMException {

          BAMDataCollectionDSClient client = null;
          try {
              client = BAMUtil.getBAMDataCollectionDSClient();
              client.addActivityData(activityDO);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
              }
          }
      }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

              }
          }
      }

      public void addMessage(MessageDO messageDO) throws BAMException {
          BAMDataCollectionDSClient client = null;
          try {
              client = BAMUtil.getBAMDataCollectionDSClient();
              client.addMessageData(messageDO);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
              }
          }
      }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

      /*
       * Add message to the DB.
       */
      public void addMessageData(MessageDO messageDO) throws BAMException {

          BAMDataCollectionDSClient client = null;
          try {
              client = BAMUtil.getBAMDataCollectionDSClient();
              client.addMessageData(messageDO);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
              }
          }
      }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

      /*
       * Add message data to the DB.
       */
      public void addMessageDataDump(MessageDataDO messageDataDO,String direction) throws BAMException {
          BAMDataCollectionDSClient client = null;
          try {
              client = BAMUtil.getBAMDataCollectionDSClient();
              client.addMessageDataDump(messageDataDO,direction);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
              }
          }
      }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

      /*
      * Add message Property data to the DB.
      */
      public void addMessageProperty(MessagePropertyDO messagePropertyDO)
              throws BAMException {
          BAMDataCollectionDSClient client = null;
          try {
              client = BAMUtil.getBAMDataCollectionDSClient();
              client.addMessageProperty(messagePropertyDO);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
              }
          }
      }
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.