public final class HadoopGremlinPlugin extends AbstractGremlinPlugin
Modifier and Type | Field and Description |
---|---|
protected static Set<String> |
IMPORTS |
protected static String |
NAME |
DOT_STAR, ENV_CONSOLE_IO, ENV_CONSOLE_SHELL, IMPORT_SPACE, IMPORT_STATIC_SPACE, io, requireConsoleEnvironment, shell
ENVIRONMENT
Constructor and Description |
---|
HadoopGremlinPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
afterPluginTo(PluginAcceptor pluginAcceptor)
Called after the
AbstractGremlinPlugin.pluginTo(PluginAcceptor) method is executed which sets the AbstractGremlinPlugin.io and
AbstractGremlinPlugin.shell member variables. |
String |
getName()
The name of the plugin.
|
Optional<RemoteAcceptor> |
remoteAcceptor()
Allows a plugin to utilize features of the
:remote and :submit commands of the Gremlin Console. |
boolean |
requireRestart()
Some plugins may require a restart of the plugin host for the classloader to pick up the features.
|
pluginTo
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–2016 Apache Software Foundation. All rights reserved.