Class 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.Command
    Provides 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.String info()  
      void init()  
      java.lang.String list()  
      void quit()  
      java.lang.String start​(java.lang.String jobName)  
      java.lang.String status()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandShell

        public CommandShell()
    • 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.JobInstanceAlreadyExistsException
        org.springframework.batch.core.JobParametersInvalidException
        org.springframework.batch.core.launch.NoSuchJobException
      • info

        @ShellMethod("Provides information about this instance")
        public java.lang.String info()
      • quit

        @ShellMethod("Quit.")
        public void quit()