public class RandomTextSourceNode extends Object implements SourceNode
SourceNode to be used for load testing| Modifier and Type | Field and Description |
|---|---|
protected static Integer |
blobSizeInKB |
static boolean |
CACHE_CHILDREN |
protected List<SourceNode> |
cachedChildren |
static int |
defaultNbDataNodesPerFolder |
protected boolean |
folderish |
protected static RandomTextGenerator |
gen |
protected Random |
hazard |
protected int |
idx |
protected int |
level |
static int |
maxDepth |
protected static int |
maxNode |
protected static int |
minFoldersPerNode |
protected static int |
minGlobalFolders |
protected String |
name |
protected static Integer |
nbFolders |
protected static Integer |
nbNodes |
protected boolean |
onlyText |
protected static Long |
size |
| Constructor and Description |
|---|
RandomTextSourceNode(boolean folderish,
int level,
int idx,
boolean onlyText) |
| Modifier and Type | Method and Description |
|---|---|
BlobHolder |
getBlobHolder() |
protected String |
getBlobMimeType() |
List<SourceNode> |
getChildren() |
int |
getLevel() |
protected int |
getMaxChildren() |
protected int |
getMaxFolderish() |
protected int |
getMidRandom(int target) |
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() |
protected static RandomTextGenerator gen
protected static int maxNode
public static int maxDepth
public static int defaultNbDataNodesPerFolder
protected static int minGlobalFolders
protected static int minFoldersPerNode
protected boolean folderish
protected int level
protected int idx
protected static Integer blobSizeInKB
protected List<SourceNode> cachedChildren
public static boolean CACHE_CHILDREN
protected boolean onlyText
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)
protected String getBlobMimeType()
public BlobHolder getBlobHolder()
getBlobHolder in interface SourceNodeprotected int getMidRandom(int target)
protected int getMaxChildren()
protected int getMaxFolderish()
public List<SourceNode> getChildren()
getChildren in interface SourceNodepublic String getName()
getName in interface SourceNodepublic boolean isFolderish()
isFolderish in interface SourceNodepublic static Integer getNbNodes()
public int getLevel()
public String getSourcePath()
getSourcePath in interface SourceNodeCopyright © 2016 Nuxeo SA. All rights reserved.