Search in sources :

Example 16 with Args

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);
}
Also used : Args(org.neo4j.helpers.Args) File(java.io.File)

Aggregations

Args (org.neo4j.helpers.Args)16 File (java.io.File)12 DefaultFileSystemAbstraction (org.neo4j.io.fs.DefaultFileSystemAbstraction)7 FileSystemAbstraction (org.neo4j.io.fs.FileSystemAbstraction)6 PrintStream (java.io.PrintStream)3 Config (org.neo4j.kernel.configuration.Config)3 FormattedLogProvider (org.neo4j.logging.FormattedLogProvider)3 IOException (java.io.IOException)2 GraphDatabaseAPI (org.neo4j.kernel.internal.GraphDatabaseAPI)2 LogProvider (org.neo4j.logging.LogProvider)2 Input (org.neo4j.unsafe.impl.batchimport.input.Input)2 IdType (org.neo4j.unsafe.impl.batchimport.input.csv.IdType)2 BufferedOutputStream (java.io.BufferedOutputStream)1 InputStream (java.io.InputStream)1 OutputStream (java.io.OutputStream)1 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 Charset (java.nio.charset.Charset)1 Charset.defaultCharset (java.nio.charset.Charset.defaultCharset)1 RemoteException (java.rmi.RemoteException)1