public abstract class ShellLobby extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Serializable> |
NO_INITIAL_SESSION |
| Constructor and Description |
|---|
ShellLobby() |
| Modifier and Type | Method and Description |
|---|---|
static ShellClient |
newClient()
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(int port)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(int port,
String name,
CtrlCHandler ctrlcHandler)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(org.neo4j.shell.impl.RmiLocation serverLocation,
CtrlCHandler ctrlcHandler)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(org.neo4j.shell.impl.RmiLocation serverLocation,
Map<String,Serializable> initialSession,
CtrlCHandler ctrlcHandler)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(ShellServer server)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(ShellServer server,
CtrlCHandler signalHandler)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(ShellServer server,
Map<String,Serializable> initialSession,
CtrlCHandler signalHandler)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(ShellServer server,
Map<String,Serializable> initialSession,
Output output,
CtrlCHandler signalHandler)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(String host,
CtrlCHandler ctrlcHandler)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(String host,
int port)
Creates a client and "starts" it, i.e.
|
static ShellClient |
newClient(String host,
int port,
String name,
CtrlCHandler ctrlcHandler)
Creates a client and "starts" it, i.e.
|
static ShellServer |
newServer(Class<? extends ShellServer> cls)
To get rid of the RemoteException, uses a constructor without arguments.
|
static org.neo4j.shell.impl.RmiLocation |
remoteLocation() |
static org.neo4j.shell.impl.RmiLocation |
remoteLocation(int port) |
static org.neo4j.shell.impl.RmiLocation |
remoteLocation(int port,
String rmiName) |
public static final Map<String,Serializable> NO_INITIAL_SESSION
public static ShellServer newServer(Class<? extends ShellServer> cls) throws ShellException
cls - the class of the server to instantiate.ShellException - if the object couldn't be instantiated.public static ShellClient newClient(ShellServer server, CtrlCHandler signalHandler) throws ShellException
server - the server (in the same JVM) which the client will
communicate with.signalHandler - the ctrl-c handler to useShellException - if the execution failspublic static ShellClient newClient(ShellServer server) throws ShellException
server - the server (in the same JVM) which the client will
communicate with.ShellException - if the execution failspublic static ShellClient newClient(ShellServer server, Map<String,Serializable> initialSession, CtrlCHandler signalHandler) throws ShellException
server - the server (in the same JVM) which the client will
communicate with.initialSession - the initial session variables the shell will have,
in addition to those provided by the server initially.signalHandler - the ctrl-c handler to useShellException - if the execution failspublic static ShellClient newClient(ShellServer server, Map<String,Serializable> initialSession, Output output, CtrlCHandler signalHandler) throws ShellException
server - the server (in the same JVM) which the client will
communicate with.initialSession - the initial session variables the shell will have,
in addition to those provided by the server initially.output - the output to write to.signalHandler - the ctrl-c handler to useShellException - if the execution failspublic static ShellClient newClient(int port, String name, CtrlCHandler ctrlcHandler) throws ShellException
port - the RMI port.name - the RMI name.ctrlcHandler - the ctrl-c handler to useShellException - if no server was found at the RMI location.public static ShellClient newClient(int port) throws ShellException
port - the RMI port.ShellException - if no server was found at the RMI location.public static ShellClient newClient(String host, int port, String name, CtrlCHandler ctrlcHandler) throws ShellException
host - the host (IP or domain name).port - the RMI port.name - the RMI name.ctrlcHandler - the ctrl-c handler to useShellException - if no server was found at the RMI location.public static ShellClient newClient(String host, int port) throws ShellException
host - the host (IP or domain name).port - the RMI port.ShellException - if no server was found at the RMI location.public static ShellClient newClient(org.neo4j.shell.impl.RmiLocation serverLocation, CtrlCHandler ctrlcHandler) throws ShellException
serverLocation.serverLocation - the RMI location of the server to connect to.ctrlcHandler - the ctrl-c handler to useShellException - if no server was found at the RMI location.public static ShellClient newClient(org.neo4j.shell.impl.RmiLocation serverLocation, Map<String,Serializable> initialSession, CtrlCHandler ctrlcHandler) throws ShellException
serverLocation.serverLocation - the RMI location of the server to connect to.initialSession - the initial session variables the shell will have,
in addition to those provided by the server initially.ctrlcHandler - the ctrl-c handler to useShellException - if no server was found at the RMI location.public static ShellClient newClient(String host, CtrlCHandler ctrlcHandler) throws ShellException
host with default
port and name.host - host to connect to.ctrlcHandler - the ctrl-c handler to useShellException - if no server was found at the RMI location.public static ShellClient newClient() throws ShellException
ShellException - if no server was found at the RMI location.public static org.neo4j.shell.impl.RmiLocation remoteLocation()
public static org.neo4j.shell.impl.RmiLocation remoteLocation(int port)
public static org.neo4j.shell.impl.RmiLocation remoteLocation(int port,
String rmiName)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.