ServicePlugin (Hadoop 0.20.2-cdh3u1 API)
Date: 2011-07-18

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.util
Interface ServicePlugin

All Superinterfaces:
  Closeable

All Known Implementing Classes:
  JobTrackerPlugin

    public interface ServicePlugin

extends Closeable

Service plug-in interface. Service plug-ins may be used to expose functionality of datanodes or namenodes using arbitrary RPC protocols. Plug-ins are instantiated by the service instance, and are notified of service life-cycle events using the methods defined by this class. Service plug-ins are started after the service instance is started, and stopped before the service instance is stopped.

Method Summary
`void` | `start(Object service)` This method is invoked when the service instance has been started.
`void` | `stop()` This method is invoked when the service instance is about to be shut down.

Methods inherited from interface java.io.Closeable
`close`

Method Detail

### start

    void start(Object service)

  This method is invoked when the service instance has been started. If the plugin fails to initialize and throws an exception, the PluginDispatcher instance will log an error and remove the plugin.

  Parameters:
    `service` - The service instance invoking this method

### stop

    void stop()

  This method is invoked when the service instance is about to be shut down.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation