//private static final Logger log = LoggingManager.getLoggerForClass();
private static final Set commands = new HashSet();
static {
commands.add(ActionNames.ACTION_START);
commands.add(ActionNames.ACTION_STOP);
commands.add(ActionNames.ACTION_SHUTDOWN);
}
private StandardJMeterEngine engine;
/**
* Constructor for the Start object.
*/
public [[#variabledfe6960]]() {
}
/**
* Gets the ActionNames attribute of the Start object.
*
* @return the ActionNames value
*/
public Set getActionNames() {
return commands;
}
public void doAction(ActionEvent e) {
if (e.getActionCommand().equals(ActionNames.ACTION_START)) {
popupShouldSave(e);
startEngine();
}
else
if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {
if (engine != null) {
[[#variabledfe68e0]].getInstance().getMainFrame().showStoppingMessage("");
engine.stopTest();
engine = null;
}
}
else
if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {
if (engine != null) {
[[#variabledfe68e0]].getInstance().getMainFrame().showStoppingMessage("");
engine.askThreadsToStop();
engine = null;
}
}
}
|