Interface RemoteAcceptor
- 
- All Superinterfaces:
- AutoCloseable,- Closeable
 
 public interface RemoteAcceptor extends Closeable The Gremlin Console supports the:remoteand:submitcommands 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 throughConsoleCustomizer.getRemoteAcceptor(GremlinShellEnvironment)a plugin can hook into those commands and provide remoting features.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanallowRemoteConsole()If theRemoteAcceptoris used in the Gremlin Console, then this method might be called to determine if it can be used in a fashion that supports the:remote consolecommand.Objectconfigure(List<String> args)Gets called when:remoteis used in conjunction with theconfigoption.Objectconnect(List<String> args)Gets called when:remoteis used in conjunction with the "connect" option.Objectsubmit(List<String> args)Gets called when:submitis executed.
 
- 
- 
- 
Field Detail- 
RESULTstatic final String RESULT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
connectObject connect(List<String> args) throws RemoteException Gets called when:remoteis 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".- Returns:
- an object to display as output to the user
- Throws:
- RemoteException- if there is a problem with connecting
 
 - 
configureObject configure(List<String> args) throws RemoteException Gets called when:remoteis used in conjunction with theconfigoption. It is up to the implementation to decide how additional arguments on the line should be treated afterconfig.- Returns:
- an object to display as output to the user
- Throws:
- RemoteException- if there is a problem with configuration
 
 - 
submitObject submit(List<String> args) throws RemoteException Gets called when:submitis executed. It is up to the implementation to decide how additional arguments on the line should be treated after:submit.- Returns:
- an object to display as output to the user
- Throws:
- RemoteException- if there is a problem with submission
 
 - 
allowRemoteConsoledefault boolean allowRemoteConsole() If theRemoteAcceptoris used in the Gremlin Console, then this method might be called to determine if it can be used in a fashion that supports the:remote consolecommand. By default, this value is set tofalse. ARemoteAcceptorshould only returntruefor this method if it expects that all activities it supports are executed through the:submitcommand. If the users interaction with the remote requires working with both local and remote evaluation at the same time, it is likely best to keep this method returnfalse. A good example of this type of plugin would be the Gephi Plugin which uses:remote configto configure a localTraversalSourceto be used and expects calls to:submitfor the same body of analysis.
 
- 
 
-