// Build an easy batch engine
EasyBatchEngine easyBatchEngine = new EasyBatchEngineBuilder()
.registerRecordReader(new FlatFileRecordReader(new File(args[0])))
.registerRecordMapper(new DelimitedRecordMapper<Greeting>(Greeting.class, new String[]{"id", "name"}))
.registerRecordValidator(new BeanValidationRecordValidator<Greeting>())
.registerRecordProcessor(new GreetingProcessor())
.build();
// schedule the engine to start now and run every minute
EasyBatchScheduler easyBatchScheduler = new EasyBatchScheduler(easyBatchEngine);
easyBatchScheduler.scheduleAtWithInterval(new Date(), 1);