restartNode.get(ADDRESS).add("host", domainManager.getSelectedHost());
}
restartNode.get(OP).set(SHUTDOWN);
restartNode.get("restart").set(true);
final RestartModal restartModal = new RestartModal();
restartModal.center();
RestartOp restartOp = new RestartOp(dispatcher);
restartOp.start(dispatcher, restartNode, new TimeoutOperation.Callback() {
@Override
public void onSuccess() {
// TODO Doesn't need a full reload if a non-dc host was patched
Window.Location.reload();
}
@Override
public void onTimeout() {
// TODO Is there another way out?
restartModal.timeout();
}
@Override
public void onError(final Throwable caught) {
// TODO Is there another way out?
restartModal.error();
}
});
}