Package edu.caltech.nanodb.commands
Class FlushCommand
- java.lang.Object
-
- edu.caltech.nanodb.commands.Command
-
- edu.caltech.nanodb.commands.FlushCommand
-
public class FlushCommand extends Command
This command flushes all unwritten data from the buffer manager to disk. A sync is not performed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.caltech.nanodb.commands.Command
Command.Type
-
-
Constructor Summary
Constructors Constructor Description FlushCommand()
Construct a new FLUSH command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(NanoDBServer server)
Actually performs the command.java.lang.String
toString()
Prints a simple representation of the flush command.-
Methods inherited from class edu.caltech.nanodb.commands.Command
getCommandType
-
-
-
-
Method Detail
-
execute
public void execute(NanoDBServer server) throws ExecutionException
Description copied from class:Command
Actually performs the command.- Specified by:
execute
in classCommand
- Throws:
ExecutionException
- if an issue occurs during command execution
-
toString
public java.lang.String toString()
Prints a simple representation of the flush command.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representing this flush command
-
-