public interface IWorkerHook extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
shutdown()
This method is called right before a worker shuts down
|
void |
start(Map stormConf,
WorkerTopologyContext context)
This method is called when a worker is started
|
void start(Map stormConf, WorkerTopologyContext context)
stormConf
- The Storm configuration for this workercontext
- This object can be used to get information about this worker's place within the topologyvoid shutdown()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.