Class RandomStringBlobMessageProducer

    • Constructor Detail

      • RandomStringBlobMessageProducer

        public RandomStringBlobMessageProducer​(int producerId,
                                               long nbBlobs,
                                               String lang,
                                               int averageSizeKB,
                                               String marker)
    • Method Detail

      • getPartition

        public int getPartition​(BlobMessage message,
                                int partitions)
        Description copied from interface: ProducerIterator
        Returns a partition associated with the Message. The value returned must be between 0 and lower than partitions.
        Parameters:
        message - the message to shard
        partitions - the number of partitions
      • hasNext

        public boolean hasNext()
      • generateFilename

        protected String generateFilename()
      • generateContent

        protected String generateContent()