Package edu.caltech.nanodb.server
Interface CommandEventListener
-
- All Known Implementing Classes:
TransactionStateUpdater
public interface CommandEventListener
This interface can be implemented by components that need to do processing before and/or after a command is executed. Command-event listeners need to be registered on theEventDispatcher
before they will be invoked.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
afterCommandExecuted(Command cmd)
This method is called after a command is executed, to allow listeners to perform after-command processing.void
beforeCommandExecuted(Command cmd)
This method is called before a command is executed, to allow listeners to perform before-command processing.
-
-
-
Method Detail
-
beforeCommandExecuted
void beforeCommandExecuted(Command cmd)
This method is called before a command is executed, to allow listeners to perform before-command processing.- Parameters:
cmd
- the command about to be executed
-
afterCommandExecuted
void afterCommandExecuted(Command cmd)
This method is called after a command is executed, to allow listeners to perform after-command processing.- Parameters:
cmd
- the command that was just executed
-
-