Class LoggingAction
- java.lang.Object
 - 
- org.opendaylight.infrautils.shell.LoggingAction
 
 
- 
- All Implemented Interfaces:
 org.apache.karaf.shell.api.action.Action
public abstract class LoggingAction extends Object implements org.apache.karaf.shell.api.action.Action
Base class to implement Karaf CLI command actions which correctly log failures. Recommend because Karaf sometimes "swallows" (hides) exceptions (INFRAUTILS-55).- Author:
 - Michael Vorburger.ch
 
 
- 
- 
Constructor Summary
Constructors Constructor Description LoggingAction() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @Nullable Objectexecute()protected abstract voidrun(PrintStream ps) 
 - 
 
- 
- 
Method Detail
- 
run
protected abstract void run(PrintStream ps) throws Exception
- Throws:
 Exception
 
- 
execute
public final @Nullable Object execute()
- Specified by:
 executein interfaceorg.apache.karaf.shell.api.action.Action
 
 - 
 
 -