Class Disconnect

  • All Implemented Interfaces:
    Command, Help

    public class Disconnect
    extends ConsoleCommand
    Disconnect command
    Author:
    Dale Visser
    • Constructor Detail

      • Disconnect

        public Disconnect​(ConsoleIO consoleIO,
                          ConsoleState state,
                          Close close)
        Constructor
        Parameters:
        consoleIO -
        state -
        close -
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Help
        Get the name of the command
        Returns:
        string
      • execute

        public void execute​(boolean verbose)
        Execute the command
        Parameters:
        verbose -
      • execute

        public void execute​(String... parameters)
                     throws IOException
        Description copied from interface: Command
        Execute the given parameters.
        Specified by:
        execute in interface Command
        Overrides:
        execute in class ConsoleCommand
        Parameters:
        parameters - parameters typed by user
        Throws:
        IOException - if a problem occurs reading or writing