Examples of printElapsedTime()


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

        t.printElapsedTime("getAuthorizedActiveChildren");
}
      else
      {
        availableCategories = getCategoryController().getActiveChildrenCategoryVOList(categoryId);
        t.printElapsedTime("findAllActiveChildren");
      }
    }
    catch(Exception e)
    {
      logger.warn("We could not fetch the list of categories: " + e.getMessage(), e);
View Full Code Here

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

  protected void initialize(String groupName) throws Exception
  {
    Timer t = new Timer();
   
      super.initialize();
    t.printElapsedTime("initialize 1");
   
    logger.info("groupName:" + groupName);

    List contentTypeDefinitionVOList = GroupPropertiesController.getController().getContentTypeDefinitionVOList(groupName);
    if(contentTypeDefinitionVOList != null && contentTypeDefinitionVOList.size() > 0)
View Full Code Here

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

    logger.info("groupName:" + groupName);

    List contentTypeDefinitionVOList = GroupPropertiesController.getController().getContentTypeDefinitionVOList(groupName);
    if(contentTypeDefinitionVOList != null && contentTypeDefinitionVOList.size() > 0)
      this.setContentTypeDefinitionVO((ContentTypeDefinitionVO)contentTypeDefinitionVOList.get(0));
    t.printElapsedTime("initialize 2");
   
    InfoGlueGroup infoGlueGroup = GroupControllerProxy.getController().getGroup(groupName);
    groupPropertiesVOList = GroupPropertiesController.getController().getGroupPropertiesVOList(groupName, this.getLanguageId());
    if(groupPropertiesVOList != null && groupPropertiesVOList.size() > 0)
    {
View Full Code Here

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

    }
    else
    {
      this.setContentTypeDefinitionId(this.getContentTypeDefinitionVO().getContentTypeDefinitionId());
    }
    t.printElapsedTime("initialize 3");
   
    logger.info("this.groupPropertiesVO:" + this.groupPropertiesVO);
   
    this.setAttributes(ContentTypeDefinitionController.getController().getContentTypeAttributes(this.getContentTypeDefinitionVO().getSchemaValue(), true, getLanguageCode(), getInfoGluePrincipal(), null))
 
View Full Code Here

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

   
    logger.info("this.groupPropertiesVO:" + this.groupPropertiesVO);
   
    this.setAttributes(ContentTypeDefinitionController.getController().getContentTypeAttributes(this.getContentTypeDefinitionVO().getSchemaValue(), true, getLanguageCode(), getInfoGluePrincipal(), null))
 
    t.printElapsedTime("initialize 4");
  }

  public String doExecute() throws Exception
  {
    this.initialize(getGroupName());  
View Full Code Here

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

    }
    catch(Exception e)
    {
      logger.warn("We could not fetch the list of defined category keys: " + e.getMessage(), e);
    }
    t.printElapsedTime("getRelatedCategories took");

    return relatedCategories;
  }

 
View Full Code Here

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

    }

    results.close();
    oql.close();
   
    t.printElapsedTime("getLatestContentVersion from ids took", 20);
    return result;
  }
 
  public SmallestContentVersionVO getLatestContentVersionVOByContentIds(Set<String> contentIds, Database db) throws SystemException, Bug, Exception
    {
View Full Code Here

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

    }

    results.close();
    oql.close();
   
    t.printElapsedTime("getLatestContentVersion from content ids took", 100);
    return result;
  }
}
View Full Code Here

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

              transformer.transform(xmlSource, builder);
              setResultAttribute(builder.getCurrentRoot());
            }
     
      if(logger.isInfoEnabled())
        timer.printElapsedTime("Saxon Transform to dom document took");           
    }
    catch (Exception e)
    {
            logger.error("Error transforming with SAXON:" + e.getMessage(), e);
        }
View Full Code Here

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

        if(logger.isInfoEnabled())
          logger.info("Using some cache (useCache:" + useCache + ", useFileCacheFallback:" + useFileCacheFallback + ", cacheTimeout:" + cacheTimeout.intValue() + ")");

        cachedResult = (String)CacheController.getCachedObjectFromAdvancedCache(cacheName, localCacheKey, cacheTimeout.intValue(), useFileCacheFallback, fileCacheCharEncoding, useCache);
        if(logger.isInfoEnabled())
          t.printElapsedTime("Getting timed cache result:" + cachedResult);
       
        if(((cachedResult == null || cachedResult.equals(""))) && !skipExpiredContentFallback)
        {
          logger.info("No cached result either in memory or in filecache - getting old if exists");
          cachedResult = (String)CacheController.getCachedObjectFromAdvancedCache(cacheName, localCacheKey, useFileCacheFallback, fileCacheCharEncoding, useCache);
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.