SparkGremlinPlugin
.@Deprecated public final class SparkGremlinPlugin extends AbstractGremlinPlugin
Modifier and Type | Field and Description |
---|---|
protected static Set<String> |
IMPORTS
Deprecated.
|
protected static String |
NAME
Deprecated.
|
DOT_STAR, ENV_CONSOLE_IO, ENV_CONSOLE_SHELL, IMPORT_SPACE, IMPORT_STATIC_SPACE, io, requireConsoleEnvironment, shell
ENVIRONMENT
Constructor and Description |
---|
SparkGremlinPlugin()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPluginTo(PluginAcceptor pluginAcceptor)
Deprecated.
Called after the
AbstractGremlinPlugin.pluginTo(PluginAcceptor) method is executed which sets the AbstractGremlinPlugin.io and
AbstractGremlinPlugin.shell member variables. |
String |
getName()
Deprecated.
The name of the plugin.
|
Optional<RemoteAcceptor> |
remoteAcceptor()
Deprecated.
Allows a plugin to utilize features of the
:remote and :submit commands of the Gremlin Console. |
boolean |
requireRestart()
Deprecated.
Some plugins may require a restart of the plugin host for the classloader to pick up the features.
|
pluginTo
protected static String NAME
public String getName()
GremlinPlugin
public void afterPluginTo(PluginAcceptor pluginAcceptor) throws PluginInitializationException, IllegalEnvironmentException
AbstractGremlinPlugin
AbstractGremlinPlugin.pluginTo(PluginAcceptor)
method is executed which sets the AbstractGremlinPlugin.io
and
AbstractGremlinPlugin.shell
member variables.afterPluginTo
in class AbstractGremlinPlugin
PluginInitializationException
IllegalEnvironmentException
public boolean requireRestart()
GremlinPlugin
Class.forName()
to dynamically instantiate classes from the
root classloader (e.g. JDBC drivers that instantiate via @{code DriverManager}).public Optional<RemoteAcceptor> remoteAcceptor()
GremlinPlugin
:remote
and :submit
commands of the Gremlin Console.
This method does not need to be implemented if the plugin is not meant for the Console for some reason or
if it does not intend to take advantage of those commands.Copyright © 2013–2018 Apache Software Foundation. All rights reserved.