io.github.benas.easybatch.tutorials.bench
Class BenchmarkUtil

java.lang.Object
  extended by io.github.benas.easybatch.tutorials.bench.BenchmarkUtil

public class BenchmarkUtil
extends Object

Utility class used to generate customer data and build easy batch instance definition.

Author:
benas (md.benhassine@gmail.com)

Field Summary
static Marshaller customerMarshaller
           
static io.github.benas.jpopulator.api.Populator customerPopulator
           
 
Constructor Summary
BenchmarkUtil()
           
 
Method Summary
static EasyBatchEngine buildCsvEasyBatchEngine(String customersFile)
           
static Marshaller buildCustomerMarshaller()
           
static io.github.benas.jpopulator.api.Populator buildCustomerPopulator()
           
static EasyBatchEngine buildXmlEasyBatchEngine(String customersFile)
           
static void generateCsvCustomers(String customersFile, int customersCount)
           
static Customer generateCustomer()
           
static void generateXmlCustomers(String customersFile, int customersCount)
           
static String toCsv(Customer customer)
           
static String toXml(Customer customer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customerPopulator

public static io.github.benas.jpopulator.api.Populator customerPopulator

customerMarshaller

public static Marshaller customerMarshaller
Constructor Detail

BenchmarkUtil

public BenchmarkUtil()
Method Detail

generateCustomer

public static Customer generateCustomer()

generateCsvCustomers

public static void generateCsvCustomers(String customersFile,
                                        int customersCount)
                                 throws Exception
Throws:
Exception

generateXmlCustomers

public static void generateXmlCustomers(String customersFile,
                                        int customersCount)
                                 throws Exception
Throws:
Exception

buildCsvEasyBatchEngine

public static EasyBatchEngine buildCsvEasyBatchEngine(String customersFile)
                                               throws Exception
Throws:
Exception

buildXmlEasyBatchEngine

public static EasyBatchEngine buildXmlEasyBatchEngine(String customersFile)
                                               throws Exception
Throws:
Exception

buildCustomerMarshaller

public static Marshaller buildCustomerMarshaller()

buildCustomerPopulator

public static io.github.benas.jpopulator.api.Populator buildCustomerPopulator()

toCsv

public static String toCsv(Customer customer)

toXml

public static String toXml(Customer customer)
                    throws Exception
Throws:
Exception


Copyright © 2014. All Rights Reserved.