Class ExitCommand
- java.lang.Object
-
- org.apache.karaf.shell.impl.console.commands.TopLevelCommand
-
- org.apache.karaf.shell.impl.console.commands.ExitCommand
-
public class ExitCommand extends TopLevelCommand
-
-
Constructor Summary
Constructors Constructor Description ExitCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute(Session session)
String
getDescription()
Retrieve the description of this command.String
getName()
Retrieve the name of this command.-
Methods inherited from class org.apache.karaf.shell.impl.console.commands.TopLevelCommand
execute, getCompleter, getParser, getScope, printHelp
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Command
Retrieve the name of this command.- Returns:
- the command name.
-
getDescription
public String getDescription()
Description copied from interface:Command
Retrieve the description of this command. This short command description will be printed when using thehelp
command.- Returns:
- the command description.
-
doExecute
protected void doExecute(Session session) throws Exception
- Specified by:
doExecute
in classTopLevelCommand
- Throws:
Exception
-
-