* @throws SAXException
*/
public static void main(String[] args) throws JSAPException {
SimpleJSAP jsap = new SimpleJSAP("InfinispanFluDemo", "Parse the Influenze data and store in cache ",
new Parameter[] {
new FlaggedOption("InfinispanCfg", JSAP.STRING_PARSER, null, JSAP.REQUIRED, 'c',
JSAP.NO_LONGFLAG, "Location of Infinispan config file"),
new FlaggedOption("ifile", JSAP.STRING_PARSER, null, JSAP.NOT_REQUIRED, 'i', JSAP.NO_LONGFLAG,
"Location of influenza.dat"),
new FlaggedOption("pfile", JSAP.STRING_PARSER, null, JSAP.NOT_REQUIRED, 'p', JSAP.NO_LONGFLAG,
"location of influenza_aa.dat."),
new FlaggedOption("count", JSAP.INTEGER_PARSER, "-1", JSAP.NOT_REQUIRED, 'l', JSAP.NO_LONGFLAG,
"Number of records to load from file"),
new Switch("query", 'q', "true", "Enable query cli"),
new Switch("randomquery", 'r', "randomquery",
"Randomly query the influenza to test that the cache is fully populated"),
new FlaggedOption("nfile", JSAP.STRING_PARSER, null, JSAP.NOT_REQUIRED, 'n', JSAP.NO_LONGFLAG,
"Location of influenza_na.dat") });
if (jsap.messagePrinted())
System.exit(1);
JSAPResult config = jsap.parse(args);