Class ShutdownCommand

    • Field Detail

      • helpFile

        protected String[] helpFile
    • Constructor Detail

      • ShutdownCommand

        public ShutdownCommand()
    • Method Detail

      • getName

        public String getName()
      • getOneLineDescription

        public String getOneLineDescription()
      • runTask

        protected void runTask​(List brokerNames)
                        throws Exception
        Shuts down the specified broker or brokers
        Specified by:
        runTask in class AbstractCommand
        Parameters:
        brokerNames - - names of brokers to shutdown
        Throws:
        Exception
      • stopBrokers

        protected void stopBrokers​(MBeanServerConnection jmxConnection,
                                   Collection brokerBeans)
                            throws Exception
        Stops the list of brokers.
        Parameters:
        jmxConnection - - connection to the mbean server
        brokerBeans - - broker mbeans to stop @throws Exception
        Throws:
        Exception
      • printHelp

        protected void printHelp()
        Print the help messages for the browse command
        Specified by:
        printHelp in class AbstractCommand