OrbMaximumValueJob maxValueJob = new OrbMaximumValueJob();
maxValueJob.startJob(args);
}
private void startJob(String[] args){
OrbConfiguration orbConf = new OrbConfiguration(true);
orbConf.setFileInputFormatClass(TextInputFormat.class);
orbConf.setFileOutputFormatClass(TextOutputFormat.class);
orbConf.setVertexClass(MaximumValueVertex.class);
orbConf.setMessageClass(IntMessage.class);
orbConf.setVertexInputFormatClass(MaximumValueVertexReader.class);
orbConf.setVertexOutputFormatClass(MaximumValueVertexWriter.class);
orbConf.setNumberOfMessageHandlers(10);
orbConf.setNumberOfVertexThreads(10);
try {
parseArgs(orbConf, args, ALGORITHM_NAME);
} catch (Exception e) {
printHelpMessage();
System.exit(-1);
}
try {
orbConf.writeXml(System.out);
} catch (IOException e) {
e.printStackTrace();
}
runJob(orbConf);