Package org.apache.storm.utils
Class DefaultShellLogHandler
- java.lang.Object
-
- org.apache.storm.utils.DefaultShellLogHandler
-
- All Implemented Interfaces:
ShellLogHandler
public class DefaultShellLogHandler extends Object implements ShellLogHandler
Default implementation ofShellLogHandler.
-
-
Constructor Summary
Constructors Constructor Description DefaultShellLogHandler()Default constructor; used when loading with Class.forName(...).newInstance().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlog(ShellMsg shellMsg)Log the given message.voidsetUpContext(Class<?> ownerCls, ShellProcess process, TopologyContext context)This default implementation saves theShellProcessso it can output the process info string later.
-
-
-
Method Detail
-
setUpContext
public void setUpContext(Class<?> ownerCls, ShellProcess process, TopologyContext context)
This default implementation saves theShellProcessso it can output the process info string later.- Specified by:
setUpContextin interfaceShellLogHandler- Parameters:
ownerCls- - the class which instantiated this ShellLogHandler.process- - the currentShellProcess.context- - the currentTopologyContext.
-
log
public void log(ShellMsg shellMsg)
Log the given message.- Specified by:
login interfaceShellLogHandler- Parameters:
shellMsg- - theShellMsgto log.
-
-