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

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


      }
    }
    }

    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

      }
    }
    }

    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

    /*
       * 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

              }
          }
      }

      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

      /*
       * 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

      /*
       * 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

      /*
      * 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

      /*
       * Add Operation user defined data.
       */
      public void addUserDefinedOperationData(OperationUserDefinedDO statisticsDO)
              throws BAMException {
          BAMDataCollectionDSClient client = null;
          try {
              client = BAMUtil.getBAMDataCollectionDSClient();
              client.addUserDefinedOperationData(statisticsDO);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
              }
          }
      }
View Full Code Here

     * @return The end line number, or -1 if could not be determined
     */
    public int getEndLineNumber() {
      int ret=-1;
     
      ActivityInterface parent=getParent();
     
      if (parent != null) {
        int index=parent.getSubActivities().indexOf(this);
       
        if (index != -1) {
          if (index < (parent.getSubActivities().size()-1)) {
            ActivityInterface other=parent.getSubActivities().get(index+1);
           
            ret = other.getStartLineNumber()-1;
          } else {
            ret = parent.getEndLineNumber();
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient

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.