Package org.apache.storm.utils
Class DefaultShellLogHandler
java.lang.Object
org.apache.storm.utils.DefaultShellLogHandler
- All Implemented Interfaces:
ShellLogHandler
Default implementation of
ShellLogHandler
.-
Constructor Summary
ConstructorDescriptionDefault constructor; used when loading with Class.forName(...).newInstance(). -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log the given message.void
setUpContext
(Class<?> ownerCls, ShellProcess process, TopologyContext context) This default implementation saves theShellProcess
so it can output the process info string later.
-
Constructor Details
-
DefaultShellLogHandler
public DefaultShellLogHandler()Default constructor; used when loading with Class.forName(...).newInstance().
-
-
Method Details
-
setUpContext
This default implementation saves theShellProcess
so it can output the process info string later.- Specified by:
setUpContext
in interfaceShellLogHandler
- Parameters:
ownerCls
- - the class which instantiated this ShellLogHandler.process
- - the currentShellProcess
.context
- - the currentTopologyContext
.
-
log
Log the given message.- Specified by:
log
in interfaceShellLogHandler
- Parameters:
shellMsg
- - theShellMsg
to log.
-