Package org.apache.storm.utils
Interface ShellLogHandler
-
- All Known Implementing Classes:
DefaultShellLogHandler
public interface ShellLogHandlerHandle logging from non-JVM processes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlog(ShellMsg msg)Called by spouts and bolts when they receive a 'log' command from a multilang process.voidsetUpContext(Class<?> ownerCls, ShellProcess process, TopologyContext context)Called at least once beforelog(org.apache.storm.multilang.ShellMsg)for each spout and bolt.
-
-
-
Method Detail
-
setUpContext
void setUpContext(Class<?> ownerCls, ShellProcess process, TopologyContext context)
Called at least once beforelog(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.- Parameters:
ownerCls- - the class which instantiated this ShellLogHandler.process- - the currentShellProcess.context- - the currentTopologyContext.
-
-