
org.neo4j.shell.ShellSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neo4j-shell Show documentation
Show all versions of neo4j-shell Show documentation
A generic command shell with a client and server part.
/*
* Copyright (c) 2002-2016 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package org.neo4j.shell;
import org.neo4j.graphdb.config.Setting;
import org.neo4j.graphdb.factory.Description;
import static org.neo4j.kernel.configuration.Settings.ANY;
import static org.neo4j.kernel.configuration.Settings.BOOLEAN;
import static org.neo4j.kernel.configuration.Settings.FALSE;
import static org.neo4j.kernel.configuration.Settings.INTEGER;
import static org.neo4j.kernel.configuration.Settings.STRING;
import static org.neo4j.kernel.configuration.Settings.illegalValueMessage;
import static org.neo4j.kernel.configuration.Settings.matches;
import static org.neo4j.kernel.configuration.Settings.port;
import static org.neo4j.kernel.configuration.Settings.setting;
/**
* Settings for the shell extension
*/
@Description( "Settings for the remote shell extension" )
public class ShellSettings
{
@Description( "Enable a remote shell server which Neo4j Shell clients can log in to." )
public static final Setting remote_shell_enabled = setting( "dbms.shell.enabled", BOOLEAN, FALSE );
@Description( "Remote host for shell. By default, the shell server listens only on the loopback interface, but you can specify the IP address of any network interface or use `0.0.0.0` for all interfaces." )
public static final Setting remote_shell_host = setting( "dbms.shell.host", STRING, "127.0.0.1",
illegalValueMessage( "must be a valid name", matches( ANY ) ) );
@Description( "The port the shell will listen on." )
public static final Setting remote_shell_port = setting( "dbms.shell.port", INTEGER, "1337", port );
@Description( "Read only mode. Will only allow read operations." )
public static final Setting remote_shell_read_only = setting( "dbms.shell.read_only", BOOLEAN, FALSE );
@Description( "The name of the shell." )
public static final Setting remote_shell_name = setting( "dbms.shell.rmi_name", STRING, "shell",
illegalValueMessage( "must be a valid name", matches( ANY ) ) );
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy