public class DefaultShellLogHandler extends Object implements ShellLogHandler
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()
public void setUpContext(Class<?> ownerCls, ShellProcess process, TopologyContext context)
ShellProcess
so it can output the process info string later.setUpContext
in interface ShellLogHandler
ownerCls
- - the class which instantiated this ShellLogHandler.process
- - the current ShellProcess
.context
- - the current TopologyContext
.ShellLogHandler#setUpContext}
public void log(ShellMsg shellMsg)
log
in interface ShellLogHandler
shellMsg
- - the ShellMsg
to log.ShellLogHandler#log}
Copyright © 2023 The Apache Software Foundation. All rights reserved.