Examples of printElapsedTime()


Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

    else
    {
      Timer t = new Timer();
        components = getComponents(allowedComponentNames, disallowedComponentNames, allowedComponentGroupNames, principal, db);
        if(logger.isInfoEnabled())
          t.printElapsedTime("getComponents");
        /*
        Iterator componentsIterator = components.iterator();
      while(componentsIterator.hasNext())
      {
          ContentVO contentVO = (ContentVO)componentsIterator.next();
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

                  }
                }
            }
      }
      if(logger.isInfoEnabled())
        t.printElapsedTime("Collecting from groups took");
     
      List<ContentVO> authorizedComponents = new ArrayList<ContentVO>();
      for(ContentVO contentVO : results)
      {
        boolean hasAccess = AccessRightController.getController().getIsPrincipalAuthorized(db, principal, "Component.Select", "" + contentVO.getId(), false);
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

        boolean hasAccess = AccessRightController.getController().getIsPrincipalAuthorized(db, principal, "Component.Select", "" + contentVO.getId(), false);
        if(hasAccess)
          authorizedComponents.add(contentVO);
      }
      if(logger.isInfoEnabled())
        t.printElapsedTime("Checking access rights for components took");
      return authorizedComponents;
    }
    else
    {
      List<ContentVO> results = ContentControllerProxy.getController().getACContentVOList(principal, arguments, "Component.Select", db);
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

          {
            try
            {
              Timer t = new Timer();
              preCacheComponents(2000);
              t.printElapsedTime("Precached components took");
            }
            catch (Exception e)
            {
          logger.warn("Failed to precache components: " + e.getMessage(), e);
        }
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

    oql.bind(true);
    oql.bind(stateId);
    oql.bind(limit);

    QueryResults results = oql.execute(Database.READONLY);
    t.printElapsedTime("Executed query.....");
    while (results.hasMore())
    {
      SiteNodeVersion siteNodeVersion = (SiteNodeVersion)results.next();
      childrenVOList.add(siteNodeVersion.getValueObject());
   
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

    }
   
    results.close();
    oql.close();

       t.printElapsedTime("getSiteNodeVersionVOList " + childrenVOList.size() + " took");
      
    return childrenVOList;
  }
 
  /**
 
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

    IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_34, analyzer);
    IndexWriter iw = new IndexWriter(directory, config);
   
    Timer t = new Timer();
    addDocuments(iw, UserControllerProxy.getController().getAllUsers());
    t.printElapsedTime("Getting and indexing all users took", 50);
   
    iw.optimize();
    iw.close();
    return idx;
  }
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

      logger.info("searchString: " + searchString);     
      logger.info("populateRolesAndGroups: " + populateRolesAndGroups);     
    }

    validateIndex();
    t.printElapsedTime("Validate index took", 50);
   
    List<InfoGluePrincipal> users = new ArrayList<InfoGluePrincipal>();
   
    try
    {
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

     
      iw.addDocument(doc);
    }
   
    if(logger.isInfoEnabled())
      t.printElapsedTime("Indexing users took");
  }
 
 
  /**
   * Getting the index searcher
View Full Code Here

Examples of org.infoglue.deliver.util.Timer.printElapsedTime()

   
        String protectCategories = CmsPropertyHandler.getProtectCategories();
        if(protectCategories != null && protectCategories.equalsIgnoreCase("true"))
        {
          availableCategories = getCategoryController().getAuthorizedActiveChildren(categoryId, this.getInfoGluePrincipal());
        t.printElapsedTime("getAuthorizedActiveChildren");
}
      else
      {
        availableCategories = getCategoryController().getActiveChildrenCategoryVOList(categoryId);
        t.printElapsedTime("findAllActiveChildren");
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.