org.exoplatform.jcr.benchmark.usecases.portal
Class ReadPageAction

java.lang.Object
  extended by org.exoplatform.jcr.benchmark.usecases.portal.AbstractAction
      extended by org.exoplatform.jcr.benchmark.usecases.portal.ReadPageAction

public class ReadPageAction
extends AbstractAction

Accesses the JCR in anonymous/connected mode to x JCR nodes and for each JCR Node accesses to y JCR properties (x and y are set in the configuration)

Version:
$Id: ReadPageAction.java 34360 2009-07-22 23:58:59Z nzamosenchuk $
Author:
Nikolay Zamosenchuk

Constructor Summary
ReadPageAction(org.exoplatform.services.jcr.impl.core.RepositoryImpl repository, java.lang.String workspace, java.lang.String rootName, int depth, int nodeCount, int propertyCount, int missingNodeCount, int missingPropertyCount, boolean anonymous)
           
ReadPageAction(org.exoplatform.services.jcr.impl.core.RepositoryImpl repository, java.lang.String workspace, java.lang.String rootName, int depth, int nodeCount, int propertyCount, int missingNodeCount, int missingPropertyCount, boolean anonymous, java.util.List<java.lang.String> queries)
           
 
Method Summary
 void perform()
          Performs action on the page (possibly read, write or what ever)
 
Methods inherited from class org.exoplatform.jcr.benchmark.usecases.portal.AbstractAction
getNodeOnLevel, getRootNodeName, getSession, nextNode, nextParent, nextPropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadPageAction

public ReadPageAction(org.exoplatform.services.jcr.impl.core.RepositoryImpl repository,
                      java.lang.String workspace,
                      java.lang.String rootName,
                      int depth,
                      int nodeCount,
                      int propertyCount,
                      int missingNodeCount,
                      int missingPropertyCount,
                      boolean anonymous)
Parameters:
repository - Repository instance
workspace - Workspace name
rootName - Name of test's root node
nodeCount - Number of nodes to read
propertyCount - Number of properties to read
anonymous - Is true, then anonymous session is used.

ReadPageAction

public ReadPageAction(org.exoplatform.services.jcr.impl.core.RepositoryImpl repository,
                      java.lang.String workspace,
                      java.lang.String rootName,
                      int depth,
                      int nodeCount,
                      int propertyCount,
                      int missingNodeCount,
                      int missingPropertyCount,
                      boolean anonymous,
                      java.util.List<java.lang.String> queries)
Parameters:
repository - Repository instance
workspace - Workspace name
rootName - Name of test's root node
nodeCount - Number of nodes to read
propertyCount - Number of properties to read
anonymous - Is true, then anonymous session is used.
queries - List of queries to perform inside operation
Method Detail

perform

public void perform()
             throws javax.jcr.RepositoryException
Description copied from class: AbstractAction
Performs action on the page (possibly read, write or what ever)

Specified by:
perform in class AbstractAction
Throws:
javax.jcr.RepositoryException
See Also:
org.exoplatform.jcr.benchmark.usecases.portal.AbstractAction#perform(javax.jcr.Session)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.