Package org.apache.storm.hooks
Class BaseWorkerHook
java.lang.Object
org.apache.storm.hooks.BaseWorkerHook
- All Implemented Interfaces:
Serializable
,IWorkerHook
A BaseWorkerHook is a noop implementation of IWorkerHook. You may extends this class and implement any and/or all
methods you need for your workers.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
shutdown()
This method is called right before a worker shuts down.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.storm.hooks.IWorkerHook
start, start
-
Constructor Details
-
BaseWorkerHook
public BaseWorkerHook()
-
-
Method Details
-
shutdown
public void shutdown()This method is called right before a worker shuts down.- Specified by:
shutdown
in interfaceIWorkerHook
-