Class RandomDocumentMessageProducerFactory
java.lang.Object
org.nuxeo.importer.stream.producer.RandomDocumentMessageProducerFactory
- All Implemented Interfaces:
ProducerFactory<DocumentMessage>
public class RandomDocumentMessageProducerFactory
extends Object
implements ProducerFactory<DocumentMessage>
- Since:
- 9.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final boolean
protected final String
protected final String
protected final LogManager
protected final long
-
Constructor Summary
ConstructorDescriptionRandomDocumentMessageProducerFactory
(long nbDocuments, String lang, int blobSizeKb) RandomDocumentMessageProducerFactory
(long nbDocuments, String lang, int blobSizeKb, Boolean countFolderAsDocument) Generates random document messages that contains random blob.RandomDocumentMessageProducerFactory
(long nbDocuments, String lang, LogManager manager, String logBlobInfoName) RandomDocumentMessageProducerFactory
(long nbDocuments, String lang, LogManager manager, String logBlobInfoName, Boolean countFolderAsDocument) Generates random documents messages that point to existing blobs. -
Method Summary
Modifier and TypeMethodDescriptioncreateProducer
(int producerId) protected Name
getGroupName
(int producerId)
-
Field Details
-
nbDocuments
protected final long nbDocuments -
lang
-
blobSizeKb
protected final int blobSizeKb -
manager
-
logName
-
countFolderAsDocument
protected final boolean countFolderAsDocument
-
-
Constructor Details
-
RandomDocumentMessageProducerFactory
-
RandomDocumentMessageProducerFactory
public RandomDocumentMessageProducerFactory(long nbDocuments, String lang, int blobSizeKb, Boolean countFolderAsDocument) Generates random document messages that contains random blob. -
RandomDocumentMessageProducerFactory
public RandomDocumentMessageProducerFactory(long nbDocuments, String lang, LogManager manager, String logBlobInfoName, Boolean countFolderAsDocument) Generates random documents messages that point to existing blobs. -
RandomDocumentMessageProducerFactory
public RandomDocumentMessageProducerFactory(long nbDocuments, String lang, LogManager manager, String logBlobInfoName)
-
-
Method Details
-
createProducer
- Specified by:
createProducer
in interfaceProducerFactory<DocumentMessage>
- Parameters:
producerId
- the producer index
-
getGroupName
-