Package org.wso2.carbon.registry.core.statistics.query

Examples of org.wso2.carbon.registry.core.statistics.query.StatisticsRecord.addQuery()


        OMElement queryOmElement = null;
        for (Iterator iterator = bucketElement.getChildrenWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_QUERY)); iterator.hasNext();) {
            queryOmElement = (OMElement) iterator.next();
            bucket.addQuery(QueryHelper.fromOM(queryOmElement));

        }


        return bucket;
View Full Code Here


                                + " average " + eventMap.get("average"));
                    }
                }
            };

            cepBackEndRuntime.addQuery("testQuery", expression, cepEventListener);
            Mapping mapping = new Mapping();
            mapping.setStream("allStockQuotes");

            Map symbolMap = null;
View Full Code Here

                                + " average " + eventMap.get("serviceName"));
                    }
                }
            };

            cepBackEndRuntime.addQuery("testQuery", expression, cepEventListener);
            Mapping mapping = new Mapping();
            mapping.setStream("ServiceStatisticsDataEvent");

            Map serviceStatisticsData  = new HashMap();
            serviceStatisticsData.put("requestCount", new Integer(20));
View Full Code Here

      }

      /* add the queries */
      for (Iterator<OMElement> itr = dbsElement
          .getChildrenWithName(new QName(DBSFields.QUERY)); itr.hasNext();) {
        dataService.addQuery(QueryFactory.createQuery(dataService, itr.next()));
      }

      /* add the operations */
      for (Iterator<OMElement> itr = dbsElement
          .getChildrenWithName(new QName(DBSFields.OPERATION)); itr.hasNext();) {
View Full Code Here

      axisOperation = axisOperations.next();
      operationName = axisOperation.getName().getLocalPart();
      queryId = operationName + DBConstants.CONTRACT_FIRST_QUERY_SUFFIX;
      queryParams = getQueryParamsFromAxisOperation(modelMap, elementMap, axisOperation);
      /* query */
      dataService.addQuery(new SQLQuery(dataService, queryId, dummyConfigId, false, null,
          DBConstants.CONTRACT_FIRST_DUMMY_SQL, queryParams,
          getResultFromAxisOperation(dataService, axisOperation), null, null,
          new HashMap<String, String>(),
          dataService.getServiceNamespace()));
      /* operation */
 
View Full Code Here

            StatisticsRecord statisticsRecord = DBQueryStatisticsLog.getStatisticsRecord();
            for (String record : getTableNames(statement)) {
                statisticsRecord.addRecord(record + " (" + type + ")");
                if (Boolean.toString(true).equals(
                        System.getProperty("carbon.registry.statistics.output.queries.executed"))) {
                    statisticsRecord.addQuery(statement);
                }
            }
        }

        private String[] getTableNames(final String statement) {
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.