public final class HadoopGremlinPlugin extends AbstractGremlinPlugin
Modifier and Type | Field and Description |
---|---|
protected static String |
NAME |
customizers, moduleName
Constructor and Description |
---|
HadoopGremlinPlugin() |
Modifier and Type | Method and Description |
---|---|
Optional<Customizer[]> |
getCustomizers(String scriptEngineName)
Gets the list of
Customizer implementations to assign to a new GremlinScriptEngine . |
static HadoopGremlinPlugin |
instance() |
boolean |
requireRestart()
Some modules may require a restart of the plugin host for the classloader to pick up the features.
|
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomizers
protected static String NAME
public Optional<Customizer[]> getCustomizers(String scriptEngineName)
GremlinPlugin
Customizer
implementations to assign to a new GremlinScriptEngine
. The
implementation should filter the returned Customizers
according to the supplied name of the
Gremlin-enabled ScriptEngine
. By providing a filter, GremlinModule
developers can have the
ability to target specific ScriptEngines
.getCustomizers
in interface GremlinPlugin
getCustomizers
in class AbstractGremlinPlugin
scriptEngineName
- The name of the ScriptEngine
or null to get all the available Customizers
public boolean requireRestart()
GremlinPlugin
Class.forName()
to dynamically instantiate classes from the
root classloader (e.g. JDBC drivers that instantiate via @{code DriverManager}).public static HadoopGremlinPlugin instance()
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.