use of org.neo4j.helpers.Args in project neo4j by neo4j.
the class DumpProcessInformation method main.
public static void main(String[] args) throws Exception {
Args arg = Args.withFlags(HEAP).parse(args == null ? new String[0] : args);
boolean doHeapDump = arg.getBoolean(HEAP, false, true);
String[] containing = arg.orphans().toArray(new String[arg.orphans().size()]);
String dumpDir = arg.get(DIR, "data");
new DumpProcessInformation(FormattedLogProvider.toOutputStream(System.out), new File(dumpDir)).dumpRunningProcesses(doHeapDump, containing);
}
Aggregations