コード例 #1
0
ファイル: WebAppProxy.java プロジェクト: daisy8867/hadoopp
 @Override
 protected void serviceStop() throws Exception {
   if (proxyServer != null) {
     try {
       proxyServer.stop();
     } catch (Exception e) {
       LOG.fatal("Error stopping proxy web server", e);
       throw new YarnRuntimeException("Error stopping proxy web server", e);
     }
   }
   super.serviceStop();
 }
コード例 #2
0
ファイル: SecondaryNameNode.java プロジェクト: hmilxin/hadoop
 /** Shut down this instance of the datanode. Returns only after shutdown is complete. */
 public void shutdown() {
   shouldRun = false;
   try {
     if (infoServer != null) infoServer.stop();
   } catch (Exception e) {
     LOG.warn("Exception shutting down SecondaryNameNode", e);
   }
   try {
     if (checkpointImage != null) checkpointImage.close();
   } catch (IOException e) {
     LOG.warn(StringUtils.stringifyException(e));
   }
 }
コード例 #3
0
 public void stop() throws Exception {
   if (httpServer != null) {
     httpServer.stop();
   }
 }
コード例 #4
0
 protected void tearDown() throws Exception {
   server.stop();
 }