|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.jcr.benchmark.usecases.portal.AbstractAction
public abstract class AbstractAction
Action performing read usecase.
| Constructor Summary | |
|---|---|
AbstractAction(org.exoplatform.services.jcr.impl.core.RepositoryImpl repository,
java.lang.String workspace,
java.lang.String rootName,
int depth)
|
|
| Method Summary | |
|---|---|
protected javax.jcr.Node |
getNodeOnLevel(javax.jcr.Node testRoot,
int level)
|
java.lang.String |
getRootNodeName()
|
javax.jcr.Session |
getSession(boolean anonymous)
Returns session, using ThreadLocalSessionProvider |
javax.jcr.Node |
nextNode(javax.jcr.Node testRoot)
Returns next node from hierarchy tree in stochastic (random) order |
javax.jcr.Node |
nextParent(javax.jcr.Node testRoot)
Returns next node from hierarchy tree in stochastic (random) order |
java.lang.String |
nextPropertyName()
Generates next random property name by selecting random property type and single/multi value option. |
abstract void |
perform()
Performs action on the page (possibly read, write or what ever) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAction(org.exoplatform.services.jcr.impl.core.RepositoryImpl repository,
java.lang.String workspace,
java.lang.String rootName,
int depth)
repository - Repository instanceworkspace - Workspace namerootName - Test's root node name| Method Detail |
|---|
public java.lang.String getRootNodeName()
public javax.jcr.Session getSession(boolean anonymous)
throws javax.jcr.RepositoryException
anonymous - If true, then anonymous session is returned
javax.jcr.RepositoryException
public javax.jcr.Node nextNode(javax.jcr.Node testRoot)
throws javax.jcr.RepositoryException
testRoot - Node to start from
javax.jcr.RepositoryException
public javax.jcr.Node nextParent(javax.jcr.Node testRoot)
throws javax.jcr.RepositoryException
testRoot -
javax.jcr.RepositoryException
protected javax.jcr.Node getNodeOnLevel(javax.jcr.Node testRoot,
int level)
throws javax.jcr.RepositoryException
testRoot - level -
javax.jcr.RepositoryExceptionpublic java.lang.String nextPropertyName()
public abstract void perform()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||