Package org.neo4j.helpers

Examples of org.neo4j.helpers.Args


    private static final String FULL = "full";
    public static final String DEFAULT_SCHEME = "simple";

    public static void main( String[] args )
    {
        Args arguments = new Args( args );

        checkArguments( arguments );

        boolean full = arguments.has( FULL );
        String from = arguments.get( FROM, null );
        String to = arguments.get( TO, null );
        URI backupURI = null;
        try
        {
            backupURI = new URI( from );
        }
View Full Code Here


    public static void main( String[] strArgs ) throws Exception
    {
        try
        {
            Args args = new Args( strArgs );

            //
            // 1. ARGUMENT HANDLING
            //

            System.setProperty( "org.neo4j.webadmin.developmentmode",
                    args.get( "development", "false" ) );
            System.setProperty( "org.neo4j.graphdb.location",
                    args.get( "dbPath", "neo4j-rest-db" ) );
            System.setProperty( "org.neo4j.webadmin.rrdb.location",
                    args.get( "rrdbPath", "neo4j-rrdb" ) );

            int restPort = args.getNumber( "restPort",
                    WebServerFactory.DEFAULT_PORT ).intValue();
            int adminPort = args.getNumber( "adminPort",
                    AdminServer.DEFAULT_PORT ).intValue();
            String db_location = System.getProperty( "org.neo4j.graphdb.location");
            System.out.println("graphdb-location: " + db_location);

            String webRoot = args.get( "webRoot",
                    AdminServer.DEFAULT_STATIC_PATH );

            //
            // 2. START SERVERS
            //
View Full Code Here

TOP

Related Classes of org.neo4j.helpers.Args

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.