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 Configuration |
conf |
| Constructor and Description |
|---|
Plugin(PluginDescriptor pDescriptor,
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.
|
protected Configuration conf
public Plugin(PluginDescriptor pDescriptor, 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 © 2007, 2014, Oracle and/or its affiliates. All rights reserved.