Class DriverRemoteAcceptor

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor

    public class DriverRemoteAcceptor
    extends Object
    implements org.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor
    A RemoteAcceptor that takes input from the console and sends it to Gremlin Server over the standard Java driver.
    Author:
    Stephen Mallette (http://stephen.genoprime.com), Marko A. Rodriguez (http://markorodriguez.com)
    • Constructor Detail

      • DriverRemoteAcceptor

        public DriverRemoteAcceptor​(org.apache.tinkerpop.gremlin.jsr223.console.GremlinShellEnvironment shellEnvironment)
    • Method Detail

      • connect

        public Object connect​(List<String> args)
                       throws org.apache.tinkerpop.gremlin.jsr223.console.RemoteException
        Specified by:
        connect in interface org.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor
        Throws:
        org.apache.tinkerpop.gremlin.jsr223.console.RemoteException
      • configure

        public Object configure​(List<String> args)
                         throws org.apache.tinkerpop.gremlin.jsr223.console.RemoteException
        Specified by:
        configure in interface org.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor
        Throws:
        org.apache.tinkerpop.gremlin.jsr223.console.RemoteException
      • submit

        public Object submit​(List<String> args)
                      throws org.apache.tinkerpop.gremlin.jsr223.console.RemoteException
        Specified by:
        submit in interface org.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor
        Throws:
        org.apache.tinkerpop.gremlin.jsr223.console.RemoteException
      • getTimeout

        public int getTimeout()
      • allowRemoteConsole

        public boolean allowRemoteConsole()
        Specified by:
        allowRemoteConsole in interface org.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor
      • getScript

        public static String getScript​(String submittedScript,
                                       org.apache.tinkerpop.gremlin.jsr223.console.GremlinShellEnvironment shellEnvironment)
        Retrieve a script as defined in the shell context. This allows for multi-line scripts to be submitted.