Beispiel #1
0
 private void stopEngine() {
   if (Publisher.getCurrentStatus() == EngineStatus.Running) {
     _cycled = true;
     getProgressPanel().setIndeterminate(true);
     getProgressPanel().setText("Stopping Engine...");
     if (!TomcatUtil.stop()) {
       showError("Failed to stop Engine. Update could not complete.");
       setState(State.Finalise);
     }
   } else setState(State.Update);
 }
Beispiel #2
0
 // entry point - start the update process
 public void start() {
   Publisher.addEngineStatusListener(this);
   setState(State.Download);
 }
Beispiel #3
0
 protected void finalise() {
   Publisher.removeEngineStatusListener(this);
   getProgressPanel().setVisible(false);
 }