Class ExitCommand


  • public class ExitCommand
    extends Command
    This Command class represents the EXIT or QUIT SQL commands. These commands aren't standard SQL of course, but are the way that we tell the database to stop.
    • Nested Class Summary

    • Field Summary

      • Fields inherited from class edu.caltech.nanodb.commands.Command

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      ExitCommand()
      Construct an exit command.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(NanoDBServer server)
      This method really doesn't do anything, and it isn't intended to be called.
      • Methods inherited from class java.lang.Object

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

      • ExitCommand

        public ExitCommand()
        Construct an exit command.
    • Method Detail

      • execute

        public void execute​(NanoDBServer server)
                     throws ExecutionException
        This method really doesn't do anything, and it isn't intended to be called. The server looks for this command when commands are being executed, and handles it separately.
        Specified by:
        execute in class Command
        Throws:
        ExecutionException - if an issue occurs during command execution
        Code Review:
        (Donnie) We could actually have this command operate on the server now that we pass it in... Need to think about this.