public abstract class StateCommand<Z,D extends Database<Z>> extends Object implements Command<Boolean,StateCommandContext<Z,D>>
Modifier | Constructor and Description |
---|---|
protected |
StateCommand(DatabaseEvent event) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
execute(DatabaseCluster<Z,D> cluster,
StateManager stateManager,
D database) |
Boolean |
execute(StateCommandContext<Z,D> context)
Execute this command with the specified context.
|
String |
toString() |
protected StateCommand(DatabaseEvent event)
public Boolean execute(StateCommandContext<Z,D> context)
execute
in interface Command<Boolean,StateCommandContext<Z,D extends Database<Z>>>
context
- the execution context.Command.execute(java.lang.Object)
protected abstract boolean execute(DatabaseCluster<Z,D> cluster, StateManager stateManager, D database)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2004–2014 Paul Ferraro. All rights reserved.