Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.platform.importer.source
Class RandomTextSourceNode

java.lang.Object
  extended by 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

Field Summary
static boolean CACHE_CHILDREN
           
static int defaultNbDataNodesPerFolder
           
static int maxDepth
           
 
Constructor Summary
RandomTextSourceNode(boolean folderish, int level, int idx, boolean onlyText)
           
 
Method Summary
 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)
           
 boolean isFolderish()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxDepth

public static int maxDepth

defaultNbDataNodesPerFolder

public static int defaultNbDataNodesPerFolder

CACHE_CHILDREN

public static boolean CACHE_CHILDREN
Constructor Detail

RandomTextSourceNode

public RandomTextSourceNode(boolean folderish,
                            int level,
                            int idx,
                            boolean onlyText)
Method Detail

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

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.