protected ShellClient newRemoteClient(Map<String, Serializable> initialSession) throws Exception {
   return new RemoteClient(
       initialSession,
       remoteLocation(remotelyAvailableOnPort),
       new CollectingOutput(),
       InterruptSignalHandler.getHandler());
 }
Exemple #2
0
 /**
  * Starts a shell client. Remote or local depending on the arguments.
  *
  * @param arguments the arguments from the command line. Can contain information about whether to
  *     start a local {@link GraphDatabaseShellServer} or connect to an already running {@link
  *     GraphDatabaseService}.
  */
 public static void main(String[] arguments) {
   InterruptSignalHandler signalHandler = InterruptSignalHandler.getHandler();
   new StartClient().start(arguments, signalHandler);
 }
 protected SameJvmClient newShellClient(ShellServer server, Map<String, Serializable> session)
     throws ShellException, RemoteException {
   return new SameJvmClient(
       session, server, new CollectingOutput(), InterruptSignalHandler.getHandler());
 }