Package edu.caltech.nanodb.commands
Class ExitCommand
- java.lang.Object
-
- edu.caltech.nanodb.commands.Command
-
- edu.caltech.nanodb.commands.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
-
Nested classes/interfaces inherited from class edu.caltech.nanodb.commands.Command
Command.Type
-
-
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 edu.caltech.nanodb.commands.Command
getCommandType
-
-
-
-
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 classCommand
- 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.
-
-