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 class
G2PluginInterface.InitContext
Context for initializing.static class
G2PluginInterface.VersionContext
Context for version.
-
Field Summary
Fields Modifier and Type Field Description static int
PLUGIN_CRITICAL_ERROR
static int
PLUGIN_OUTPUT_BUFFER_SIZE_ERROR
static int
PLUGIN_SIMPLE_ERROR
static int
PLUGIN_SUCCESS
static int
PLUGIN_SUCCESS_WITH_INFO
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getVersion(G2PluginInterface.VersionContext context)
Gets the plugin version context informationint
init(G2PluginInterface.InitContext context)
Initializes the pluginint
shutdown()
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.
-
-