public class Plugin extends Object
Plugin
. Plugin
instances are used as the point of life cycle managemet of plugin related
functionality.
The Plugin
will be startuped and shutdown by the nutch plugin
management system.
A possible usecase of the Plugin
implementation is to create
or close a database connection.Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
Constructor and Description |
---|
Plugin(PluginDescriptor pDescriptor,
org.apache.hadoop.conf.Configuration conf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
PluginDescriptor |
getDescriptor()
Returns the plugin descriptor
|
void |
shutDown()
Shutdown the plugin.
|
void |
startUp()
Will be invoked until plugin start up.
|
public Plugin(PluginDescriptor pDescriptor, org.apache.hadoop.conf.Configuration conf)
public void startUp() throws PluginRuntimeException
PluginRuntimeException
- If the startup was without successs.public void shutDown() throws PluginRuntimeException
PluginRuntimeException
- if a problems occurs until shutdown the plugin.public PluginDescriptor getDescriptor()
Copyright © 2014 The Apache Software Foundation