public interface ShellLogHandler
| Modifier and Type | Method and Description |
|---|---|
void |
log(ShellMsg msg)
Called by spouts and bolts when they receive a 'log' command from a multilang process.
|
void |
setUpContext(Class<?> ownerCls,
ShellProcess process,
TopologyContext context)
Called at least once before
log(org.apache.storm.multilang.ShellMsg) for each spout and bolt. |
void setUpContext(Class<?> ownerCls, ShellProcess process, TopologyContext context)
log(org.apache.storm.multilang.ShellMsg) for each spout and bolt. Allows implementing classes to save information
about the current running context e.g. pid, thread, task.ownerCls - - the class which instantiated this ShellLogHandler.process - - the current ShellProcess.context - - the current TopologyContext.Copyright © 2023 The Apache Software Foundation. All rights reserved.