200,
"Restarting R...").getIndicator();
// perform the suspend and restart
eventBus_.fireEvent(
new RestartStatusEvent(RestartStatusEvent.RESTART_INITIATED));
server_.suspendForRestart(event.getSuspendOptions(),
new VoidServerRequestCallback(progress) {
@Override
protected void onSuccess()
{
// send pings until the server restarts
sendPing(event.getAfterRestartCommand(), 200, 25, new Command() {
@Override
public void execute()
{
eventBus_.fireEvent(new RestartStatusEvent(
RestartStatusEvent.RESTART_COMPLETED));
}
});
}
@Override
protected void onFailure()
{
eventBus_.fireEvent(
new RestartStatusEvent(RestartStatusEvent.RESTART_COMPLETED));
setPendinqQuit(DesktopFrame.PENDING_QUIT_NONE);
}
});