public class GraphDatabaseShellServer
extends org.neo4j.shell.impl.AbstractAppServer
ShellServer which contains common methods to use with a
graph database service.| Modifier and Type | Class and Description |
|---|---|
static class |
GraphDatabaseShellServer.WorkingDirReplacer
A
BashVariableInterpreter.Replacer for the variable "w"/"W" which returns the current
working directory (Bash), i.e. |
| Constructor and Description |
|---|
GraphDatabaseShellServer(File path,
boolean readOnly,
String configFileOrNull) |
GraphDatabaseShellServer(org.neo4j.kernel.internal.GraphDatabaseAPI graphDb) |
GraphDatabaseShellServer(org.neo4j.kernel.internal.GraphDatabaseAPI graphDb,
boolean readOnly) |
GraphDatabaseShellServer(org.neo4j.graphdb.factory.GraphDatabaseFactory factory,
File path,
boolean readOnly,
String configFileOrNull) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindTransaction(Serializable clientId) |
org.neo4j.kernel.internal.GraphDatabaseAPI |
getDb() |
org.neo4j.kernel.api.Statement |
getStatement() |
Response |
interpretLine(Serializable clientId,
String line,
Output out)
Receives a command line (probably from a
ShellClient) and reacts
to it. |
void |
registerTopLevelTransactionInProgress(Serializable clientId) |
void |
shutdown()
Shuts down the server.
|
void |
terminate(Serializable clientId)
Marks the client's active transaction as terminated.
|
void |
unbindAndRegisterTransaction(Serializable clientId) |
Welcome |
welcome(Map<String,Serializable> initialSession) |
findApp, getAllAvailableCommands, tabCompletegetClientSession, getName, interpretVariable, leave, makeRemotelyAvailable, makeRemotelyAvailable, setSessionVariable, tabCompleteequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, interpretVariable, leave, makeRemotelyAvailable, makeRemotelyAvailable, setSessionVariablepublic GraphDatabaseShellServer(File path, boolean readOnly, String configFileOrNull) throws RemoteException
path - the path to the directory where the database should be createdreadOnly - make the instance read-onlyconfigFileOrNull - path to a configuration file or nullRemoteException - if an RMI error occurs.public GraphDatabaseShellServer(org.neo4j.graphdb.factory.GraphDatabaseFactory factory,
File path,
boolean readOnly,
String configFileOrNull)
throws RemoteException
RemoteExceptionpublic GraphDatabaseShellServer(org.neo4j.kernel.internal.GraphDatabaseAPI graphDb)
throws RemoteException
RemoteExceptionpublic GraphDatabaseShellServer(org.neo4j.kernel.internal.GraphDatabaseAPI graphDb,
boolean readOnly)
throws RemoteException
RemoteExceptionpublic Response interpretLine(Serializable clientId, String line, Output out) throws ShellException
ShellServerShellClient) and reacts
to it. Output is written to the Output object.interpretLine in interface ShellServerinterpretLine in class org.neo4j.shell.impl.AbstractAppServerclientId - identifying the client.line - the command line to react to.out - where output should go (like System.out).ShellException - if there was an error in the
interpretation/execution of the command line.public void terminate(Serializable clientId)
ShellServerclientId - identifying the client.public void registerTopLevelTransactionInProgress(Serializable clientId) throws ShellException
ShellExceptionpublic org.neo4j.kernel.api.Statement getStatement()
public void unbindAndRegisterTransaction(Serializable clientId) throws ShellException
ShellExceptionpublic void bindTransaction(Serializable clientId) throws ShellException
ShellExceptionpublic org.neo4j.kernel.internal.GraphDatabaseAPI getDb()
GraphDatabaseAPI instance given in the
constructor.public void shutdown()
throws RemoteException
ShellServershutdown in interface ShellServershutdown in class org.neo4j.shell.impl.AbstractAppServerRemoteException - RMI error.public Welcome welcome(Map<String,Serializable> initialSession) throws RemoteException, ShellException
welcome in interface ShellServerwelcome in class org.neo4j.shell.impl.SimpleAppServerinitialSession - the initial session variables that the client would
like to override or add to any initial server session variables.RemoteException - RMI error.ShellException - wraps general errorsCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.