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

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

public class InitRepositoryAction
extends AbstractWriteAction

Action, performing repository initialization, by generating the structure of nodes with defined parameters, like depth and maximum number of node per level (number of child-nodes)

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

Constructor Summary
InitRepositoryAction(javax.jcr.Session session, java.lang.String rootName, java.lang.String stringValue, byte[] binaryValue, int multiValueSize, int depth, int nodesPerLevel)
           
 
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.AbstractWriteAction
createGenericNode, createValues
 
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

InitRepositoryAction

public InitRepositoryAction(javax.jcr.Session session,
                            java.lang.String rootName,
                            java.lang.String stringValue,
                            byte[] binaryValue,
                            int multiValueSize,
                            int depth,
                            int nodesPerLevel)
Parameters:
session - Within this session, repository is initialised
rootName - Name of test's root node
stringValue - Constant for string values
binaryValue - Constant for binary values
multiValueSize - Number of items in multi-valued property
depth - Depth of initialization
nodesPerLevel - Number of child nodes on each level
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:
AbstractAction.perform()


Copyright © 2010 eXo Platform SAS. All Rights Reserved.