Package se.ikama.bauta.cli
Class CommandShell
- java.lang.Object
-
- se.ikama.bauta.cli.CommandShell
-
- All Implemented Interfaces:
org.springframework.shell.standard.commands.Quit.Command
@ShellComponent public class CommandShell extends java.lang.Object implements org.springframework.shell.standard.commands.Quit.CommandProvides command shell support for Bauta. Supports job management tasks such as starting/stopping jobs etc.
-
-
Constructor Summary
Constructors Constructor Description CommandShell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringinfo()voidinit()java.lang.Stringlist()voidquit()java.lang.Stringstart(java.lang.String jobName)java.lang.Stringstatus()
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
status
@ShellMethod("Job status") public java.lang.String status() throws java.lang.Exception- Throws:
java.lang.Exception
-
list
@ShellMethod("List job names") public java.lang.String list() throws java.lang.Exception- Throws:
java.lang.Exception
-
start
@ShellMethod("Start a job") public java.lang.String start(java.lang.String jobName) throws org.springframework.batch.core.launch.JobInstanceAlreadyExistsException, org.springframework.batch.core.JobParametersInvalidException, org.springframework.batch.core.launch.NoSuchJobException- Throws:
org.springframework.batch.core.launch.JobInstanceAlreadyExistsExceptionorg.springframework.batch.core.JobParametersInvalidExceptionorg.springframework.batch.core.launch.NoSuchJobException
-
info
@ShellMethod("Provides information about this instance") public java.lang.String info()
-
quit
@ShellMethod("Quit.") public void quit()
-
-