public interface RemoteAcceptor extends Closeable
:remote
and :submit
commands which provide standardized ways
for plugins to provide "remote connections" to resources and a way to "submit" a command to those resources.
A "remote connection" does not necessarily have to be a remote server. It simply refers to a resource that is
external to the console.
By implementing this interface and returning an instance of it through GremlinPlugin.remoteAcceptor()
a
plugin can hook into those commands and provide remoting features.Modifier and Type | Method and Description |
---|---|
Object |
configure(List<String> args)
Gets called when
:remote is used in conjunction with the config option. |
Object |
connect(List<String> args)
Gets called when
:remote is used in conjunction with the "connect" option. |
static String |
getScript(String submittedScript,
Groovysh shell)
Retrieve a script as defined in the shell context.
|
Object |
submit(List<String> args)
Gets called when
:submit is executed. |
static final String RESULT
Object connect(List<String> args) throws RemoteException
:remote
is used in conjunction with the "connect" option. It is up to the
implementation to decide how additional arguments on the line should be treated after "connect".RemoteException
- if there is a problem with connectingObject configure(List<String> args) throws RemoteException
:remote
is used in conjunction with the config
option. It is up to the
implementation to decide how additional arguments on the line should be treated after config
.RemoteException
- if there is a problem with configurationObject submit(List<String> args) throws RemoteException
:submit
is executed. It is up to the implementation to decide how additional
arguments on the line should be treated after :submit
.RemoteException
- if there is a problem with submissionCopyright © 2013–2015 Apache Software Foundation. All rights reserved.