Beispiel #1
0
  /** @see NuxeoLauncher#doStart() NuxeoLauncher#doStartAndWait() */
  public void start() {
    waitForFrameLoaded();
    nuxeoFrame.stopping = false;
    nuxeoFrame.mainButton.setText(NuxeoLauncherGUI.getMessage("mainbutton.start.inprogress"));
    nuxeoFrame.mainButton.setToolTipText(NuxeoLauncherGUI.getMessage("mainbutton.stop.tooltip"));
    nuxeoFrame.mainButton.setIcon(nuxeoFrame.stopIcon);
    executor.execute(
        new Runnable() {

          @Override
          public void run() {
            try {
              launcher.doStartAndWait();
            } catch (PackageException e) {
              log.error("Could not initialize the packaging subsystem", e);
              System.exit(1);
            }
            updateServerStatus();
          }
        });
  }
Beispiel #2
0
  /** @see NuxeoLauncher#stop() */
  public void stop() {
    waitForFrameLoaded();
    nuxeoFrame.stopping = true;
    nuxeoFrame.mainButton.setText(getMessage("mainbutton.stop.inprogress"));
    nuxeoFrame.mainButton.setToolTipText(NuxeoLauncherGUI.getMessage("mainbutton.stop.tooltip"));
    nuxeoFrame.mainButton.setIcon(nuxeoFrame.stopIcon);
    executor.execute(
        new Runnable() {

          @Override
          public void run() {
            launcher.stop();
            nuxeoFrame.stopping = false;
            updateServerStatus();
          }
        });
  }