Package com.senzing.g2.engine.plugin
Interface G2PluginInterface
-
- All Known Subinterfaces:
G2ExpressedFeaturePlugin,G2ScoringPlugin,G2StandardizationPlugin,G2SuppressedFeaturePlugin
public interface G2PluginInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classG2PluginInterface.InitContextContext for initializing.static classG2PluginInterface.VersionContextContext for version.
-
Field Summary
Fields Modifier and Type Field Description static intPLUGIN_CRITICAL_ERRORstatic intPLUGIN_OUTPUT_BUFFER_SIZE_ERRORstatic intPLUGIN_SIMPLE_ERRORstatic intPLUGIN_SUCCESSstatic intPLUGIN_SUCCESS_WITH_INFO
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetVersion(G2PluginInterface.VersionContext context)Gets the plugin version context informationintinit(G2PluginInterface.InitContext context)Initializes the pluginintshutdown()Shuts down the plugin
-
-
-
Field Detail
-
PLUGIN_SUCCESS
static final int PLUGIN_SUCCESS
- See Also:
- Constant Field Values
-
PLUGIN_SUCCESS_WITH_INFO
static final int PLUGIN_SUCCESS_WITH_INFO
- See Also:
- Constant Field Values
-
PLUGIN_SIMPLE_ERROR
static final int PLUGIN_SIMPLE_ERROR
- See Also:
- Constant Field Values
-
PLUGIN_CRITICAL_ERROR
static final int PLUGIN_CRITICAL_ERROR
- See Also:
- Constant Field Values
-
PLUGIN_OUTPUT_BUFFER_SIZE_ERROR
static final int PLUGIN_OUTPUT_BUFFER_SIZE_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
int init(G2PluginInterface.InitContext context)
Initializes the plugin- Parameters:
context- The plugin initialization context- Returns:
- a status code for the initialization
-
shutdown
int shutdown()
Shuts down the plugin- Returns:
- a status code for the initialization
-
getVersion
int getVersion(G2PluginInterface.VersionContext context)
Gets the plugin version context information- Parameters:
context- The version context for performing the operation.- Returns:
- A non-negative number on success and a negative number on failure.
-
-