public interface ShellLogHandler
Handle logging from non-JVM processes.
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)
Called at least once before 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
- process
- ShellProcess
.context
- TopologyContext
.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.