io.github.benas.easybatch.tutorials.bench
Class BenchmarkUtil
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
customerPopulator
public static io.github.benas.jpopulator.api.Populator customerPopulator
customerMarshaller
public static Marshaller customerMarshaller
BenchmarkUtil
public BenchmarkUtil()
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.