Class DriverRemoteAcceptor
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.console.jsr223.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
ARemoteAcceptorthat 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)
-
-
Field Summary
Fields Modifier and Type Field Description static intNO_TIMEOUTstatic StringUSER_AGENT
-
Constructor Summary
Constructors Constructor Description DriverRemoteAcceptor(org.apache.tinkerpop.gremlin.jsr223.console.GremlinShellEnvironment shellEnvironment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowRemoteConsole()voidclose()Objectconfigure(List<String> args)Objectconnect(List<String> args)static StringgetScript(String submittedScript, org.apache.tinkerpop.gremlin.jsr223.console.GremlinShellEnvironment shellEnvironment)Retrieve a script as defined in the shell context.intgetTimeout()Objectsubmit(List<String> args)StringtoString()
-
-
-
Field Detail
-
NO_TIMEOUT
public static final int NO_TIMEOUT
- See Also:
- Constant Field Values
-
USER_AGENT
public static final String USER_AGENT
-
-
Method Detail
-
connect
public Object connect(List<String> args) throws org.apache.tinkerpop.gremlin.jsr223.console.RemoteException
- Specified by:
connectin interfaceorg.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:
configurein interfaceorg.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:
submitin interfaceorg.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor- Throws:
org.apache.tinkerpop.gremlin.jsr223.console.RemoteException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getTimeout
public int getTimeout()
-
allowRemoteConsole
public boolean allowRemoteConsole()
- Specified by:
allowRemoteConsolein interfaceorg.apache.tinkerpop.gremlin.jsr223.console.RemoteAcceptor
-
-