public class RandomTextSourceNode extends Object implements SourceNode
SourceNode
to be used for load testingModifier and Type | Field and Description |
---|---|
static boolean |
CACHE_CHILDREN |
static int |
defaultNbDataNodesPerFolder |
static int |
maxDepth |
Constructor and Description |
---|
RandomTextSourceNode(boolean folderish,
int level,
int idx,
boolean onlyText) |
Modifier and Type | Method and Description |
---|---|
BlobHolder |
getBlobHolder() |
List<SourceNode> |
getChildren() |
int |
getLevel() |
String |
getName() |
static Integer |
getNbNodes() |
static Long |
getSize() |
String |
getSourcePath() |
static RandomTextSourceNode |
init(int maxSize) |
static RandomTextSourceNode |
init(int maxSize,
Integer blobSizeInKB,
boolean onlyText) |
static RandomTextSourceNode |
init(int maxSize,
Integer blobSizeInKB,
boolean onlyText,
DictionaryHolder dictionaryHolder) |
boolean |
isFolderish() |
public static int maxDepth
public static int defaultNbDataNodesPerFolder
public static boolean CACHE_CHILDREN
public RandomTextSourceNode(boolean folderish, int level, int idx, boolean onlyText)
public static RandomTextSourceNode init(int maxSize)
public static RandomTextSourceNode init(int maxSize, Integer blobSizeInKB, boolean onlyText)
public static RandomTextSourceNode init(int maxSize, Integer blobSizeInKB, boolean onlyText, DictionaryHolder dictionaryHolder)
public BlobHolder getBlobHolder()
getBlobHolder
in interface SourceNode
public List<SourceNode> getChildren()
getChildren
in interface SourceNode
public String getName()
getName
in interface SourceNode
public boolean isFolderish()
isFolderish
in interface SourceNode
public static Integer getNbNodes()
public static Long getSize()
public int getLevel()
public String getSourcePath()
getSourcePath
in interface SourceNode
Copyright © 2015 Nuxeo SA. All rights reserved.