org.nuxeo.ecm.platform.importer.source
Class RandomTextSourceNode
java.lang.Object
org.nuxeo.ecm.platform.importer.source.RandomTextSourceNode
- All Implemented Interfaces:
- SourceNode
public class RandomTextSourceNode
- extends Object
- implements SourceNode
Random SourceNode
to be used for load testing
- Author:
- Thierry Delprat
maxDepth
public static int maxDepth
defaultNbDataNodesPerFolder
public static int defaultNbDataNodesPerFolder
CACHE_CHILDREN
public static boolean CACHE_CHILDREN
RandomTextSourceNode
public RandomTextSourceNode(boolean folderish,
int level,
int idx,
boolean onlyText)
init
public static RandomTextSourceNode init(int maxSize)
throws Exception
- Throws:
Exception
init
public static RandomTextSourceNode init(int maxSize,
Integer blobSizeInKB,
boolean onlyText)
throws Exception
- Throws:
Exception
getBlobHolder
public BlobHolder getBlobHolder()
- Specified by:
getBlobHolder
in interface SourceNode
getChildren
public List<SourceNode> getChildren()
- Specified by:
getChildren
in interface SourceNode
getName
public String getName()
- Specified by:
getName
in interface SourceNode
isFolderish
public boolean isFolderish()
- Specified by:
isFolderish
in interface SourceNode
getNbNodes
public static Integer getNbNodes()
getSize
public static Long getSize()
getLevel
public int getLevel()
getSourcePath
public String getSourcePath()
- Specified by:
getSourcePath
in interface SourceNode
Copyright © 2012 Nuxeo SA. All Rights Reserved.