Examples of Statistics


Examples of org.apache.uima.aae.monitor.statistics.Statistics

   * Clears controller statistics.
   *
   */
  protected void clearStats() {
    LongNumericStatistic statistic;
    Statistics stats = getMonitor().getStatistics("");
    Set set = stats.entrySet();
    for (Iterator it = set.iterator(); it.hasNext();) {
      Map.Entry entry = (Map.Entry) it.next();
      if (entry != null && entry.getValue() != null
              && entry.getValue() instanceof LongNumericStatistic) {
        ((LongNumericStatistic) entry.getValue()).reset();
View Full Code Here

Examples of org.dspace.app.statistics.Statistics

    @Override
    public String render() {
        Iterator<Statistics> statSets = blocks.iterator();
        while (statSets.hasNext()) {
            Statistics stats = statSets.next();
            processStat(stats, this.completeStats);
        }
        return "";
    }
View Full Code Here

Examples of org.eurekaj.api.datatypes.Statistics

 
 
  private String buildInstrumentationMenuNode(String jsonResponse, JSONObject jsonObject, String accountName) throws JSONException {
    if (jsonObject.has("getInstrumentationMenuNode")) {
        String nodeId = jsonObject.getString("getInstrumentationMenuNode");
        Statistics node = getBerkeleyTreeMenuService().getTreeMenu(nodeId, accountName);
        jsonResponse = BuildJsonObjectsUtil.buildInstrumentationNode(node).toString();
        log.debug("Got Node: \n" + jsonResponse);
    }
    return jsonResponse;
  }
View Full Code Here

Examples of org.exoplatform.services.jcr.statistics.Statistics

   /**
    * @see org.exoplatform.services.jcr.storage.WorkspaceStorageConnection#getChildNodesCount(org.exoplatform.services.jcr.datamodel.NodeData)
    */
   public int getChildNodesCount(NodeData parent) throws RepositoryException
   {
      Statistics s = ALL_STATISTICS.get(GET_CHILD_NODES_COUNT_DESCR);
      try
      {
         s.begin();
         return wcs.getChildNodesCount(parent);
      }
      finally
      {
         s.end();
      }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.statistics.Statistics

   /**
    * @see org.exoplatform.services.jcr.storage.WorkspaceStorageConnection#getChildNodesData(org.exoplatform.services.jcr.datamodel.NodeData)
    */
   public List<NodeData> getChildNodesData(NodeData parent) throws RepositoryException, IllegalStateException
   {
      Statistics s = ALL_STATISTICS.get(GET_CHILD_NODES_DATA_DESCR);
      try
      {
         s.begin();
         return wcs.getChildNodesData(parent);
      }
      finally
      {
         s.end();
      }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.statistics.Statistics

   /**
    * @see org.exoplatform.services.jcr.storage.WorkspaceStorageConnection#getChildPropertiesData(org.exoplatform.services.jcr.datamodel.NodeData)
    */
   public List<PropertyData> getChildPropertiesData(NodeData parent) throws RepositoryException, IllegalStateException
   {
      Statistics s = ALL_STATISTICS.get(GET_CHILD_PROPERTIES_DATA_DESCR);
      try
      {
         s.begin();
         return wcs.getChildPropertiesData(parent);
      }
      finally
      {
         s.end();
      }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.statistics.Statistics

    * {@inheritDoc}
    */
   public ItemData getItemData(NodeData parentData, QPathEntry name, ItemType itemType) throws RepositoryException,
      IllegalStateException
   {
      Statistics s = ALL_STATISTICS.get(GET_ITEM_DATA_BY_NODE_DATA_NQ_PATH_ENTRY_DESCR);
      try
      {
         s.begin();
         return wcs.getItemData(parentData, name, itemType);
      }
      finally
      {
         s.end();
      }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.statistics.Statistics

   /**
    * @see org.exoplatform.services.jcr.storage.WorkspaceStorageConnection#getItemData(java.lang.String)
    */
   public ItemData getItemData(String identifier) throws RepositoryException, IllegalStateException
   {
      Statistics s = ALL_STATISTICS.get(GET_ITEM_DATA_BY_ID_DESCR);
      try
      {
         s.begin();
         return wcs.getItemData(identifier);
      }
      finally
      {
         s.end();
      }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.statistics.Statistics

    * @see org.exoplatform.services.jcr.storage.WorkspaceStorageConnection#getReferencesData(java.lang.String)
    */
   public List<PropertyData> getReferencesData(String nodeIdentifier) throws RepositoryException,
      IllegalStateException, UnsupportedOperationException
   {
      Statistics s = ALL_STATISTICS.get(GET_REFERENCES_DATA_DESCR);
      try
      {
         s.begin();
         return wcs.getReferencesData(nodeIdentifier);
      }
      finally
      {
         s.end();
      }
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.statistics.Statistics

   /**
    * @see org.exoplatform.services.jcr.storage.WorkspaceStorageConnection#isOpened()
    */
   public boolean isOpened()
   {
      Statistics s = ALL_STATISTICS.get(IS_OPENED_DESCR);
      try
      {
         s.begin();
         return wcs.isOpened();
      }
      finally
      {
         s.end();
      }
   }
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.