if (id != null) {
if (id.startsWith(START_SERVER_ID) || id.startsWith(RELOAD_SERVER_ID) || id.startsWith(
STOP_SERVER_ID) || id.startsWith(KILL_SERVER_ID)) {
final String server = element.getAttribute(DATA_SERVER_NAME);
final String host = element.getAttribute(DATA_HOST_NAME);
final LifecycleOperation op = getLifecycleOperation(id);
if (op != null) {
Feedback.confirm("Modify Server",
"Do really want to " + op.name().toLowerCase() + " server " + server + "?",
new Feedback.ConfirmationHandler() {
@Override
public void onConfirmation(boolean isConfirmed) {
if (isConfirmed) {
presenter.onServerInstanceLifecycle(host, server, op);
}
}
});
}
} else if (id.startsWith(START_GROUP_ID) || id.startsWith(RESTART_GROUP_ID) || id
.startsWith(STOP_GROUP_ID)) {
final String group = element.getAttribute(DATA_GROUP_NAME);
final LifecycleOperation op = getLifecycleOperation(id);
if (op != null) {
Feedback.confirm("Modify Server", "Do really want to " + op.name()
.toLowerCase() + " all servers in group " + group + "?",
new Feedback.ConfirmationHandler() {
@Override
public void onConfirmation(boolean isConfirmed) {
if (isConfirmed) {