コード例 #1
0
  @Override
  public void postInitialize() throws Exception {
    load();

    startHub();

    Hudson.getInstance().getActions().add(this);
  }
コード例 #2
0
 public HttpResponse doRestart() throws IOException, ServletException {
   validateAdmin();
   try {
     channel.call(new StopHubCallable());
   } catch (Exception e) {
     throw new IOException(e);
   }
   channel.close();
   try {
     startHub();
     waitForHubLaunch();
   } catch (Exception e) {
     throw new IOException(e);
   }
   return HttpResponses.forwardToPreviousPage();
 }