public class DefaultShellLogHandler extends Object implements ShellLogHandler
Default implementation of ShellLogHandler
.
Constructor and Description |
---|
DefaultShellLogHandler()
Default constructor; used when loading with Class.forName(…).newInstance().
|
Modifier and Type | Method and Description |
---|---|
void |
log(ShellMsg shellMsg)
Log the given message.
|
void |
setUpContext(Class<?> ownerCls,
ShellProcess process,
TopologyContext context)
This default implementation saves the
ShellProcess so it can output the process info string later. |
public DefaultShellLogHandler()
Default constructor; used when loading with Class.forName(…).newInstance().
public void setUpContext(Class<?> ownerCls, ShellProcess process, TopologyContext context)
This default implementation saves the ShellProcess
so it can output the process info string later.
setUpContext
in interface ShellLogHandler
ownerCls
- process
- ShellProcess
.context
- TopologyContext
.ShellLogHandler#setUpContext}
public void log(ShellMsg shellMsg)
Log the given message.
log
in interface ShellLogHandler
shellMsg
- ShellMsg
to log.ShellLogHandler#log}
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.