Class RandomTextGenerator
java.lang.Object
org.nuxeo.ecm.platform.importer.random.RandomTextGenerator
Random text generator to be used for load testing
- Author:
- Thierry Delprat
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
protected DictionaryHolder
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final Random
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRandomText
(int avSizeInK) getRandomTitle
(int nbWord) protected int
protected int
void
-
Field Details
-
dictionaryHolder
-
paragraphCache
-
pageCache
-
blockCache
-
PARAGRAPH_CACHE_SIZE
protected static final int PARAGRAPH_CACHE_SIZE- See Also:
-
PARAGRAPH_CACHE_HIT
protected static final int PARAGRAPH_CACHE_HIT- See Also:
-
PAGE_CACHE_SIZE
protected static final int PAGE_CACHE_SIZE- See Also:
-
PAGE_CACHE_HIT
protected static final int PAGE_CACHE_HIT- See Also:
-
BLOC_CACHE_SIZE
protected static final int BLOC_CACHE_SIZE- See Also:
-
BLOC_CACHE_HIT
protected static final int BLOC_CACHE_HIT- See Also:
-
BLOC_SIZE
protected static final int BLOC_SIZE- See Also:
-
NB_WORDS_PER_LINE
protected static final int NB_WORDS_PER_LINE- See Also:
-
NB_LINES_PER_PARAGRAPH
protected static final int NB_LINES_PER_PARAGRAPH- See Also:
-
NB_PARAGRAPH_PER_PAGE
protected static final int NB_PARAGRAPH_PER_PAGE- See Also:
-
NB_PAGE_PER_BLOC
protected static final int NB_PAGE_PER_BLOC- See Also:
-
RANDOM
-
-
Constructor Details
-
RandomTextGenerator
-
-
Method Details
-
getTargetPageMaxSizeB
protected int getTargetPageMaxSizeB() -
getTargetParagraphMaxSizeB
protected int getTargetParagraphMaxSizeB() -
getRandomTitle
-
getRandomLine
-
generateParagraph
-
prefilCache
public void prefilCache() -
getRandomParagraph
-
generatePage
-
getRandomPage
-
generateBloc
-
getRandomBloc
-
getRandomText
-
getRandomText
-