org.apache.hadoop.yarn.webapp.WebAppException类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(76)

本文整理了Java中org.apache.hadoop.yarn.webapp.WebAppException类的一些代码示例,展示了WebAppException类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebAppException类的具体详情如下:
包路径:org.apache.hadoop.yarn.webapp.WebAppException
类名称:WebAppException

WebAppException介绍

暂无

代码示例

代码示例来源:origin: Qihoo360/XLearning

+ httpServer.getConnectorAddress(0).getPort());
} catch (IOException e) {
 throw new WebAppException("Error starting http server", e);

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common

} catch (WebAppException e) {
 rc.error = e;
 if (!e.getMessage().contains("not found")) {
  rc.setStatus(res.SC_INTERNAL_SERVER_ERROR);
  render(ErrorPage.class);

代码示例来源:origin: org.apache.slider/slider-core

return webApp.port();
} catch (WebAppException e) {
 if (e.getCause() instanceof IOException) {
  throw (IOException)e.getCause();
 } else {
  throw e;

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common

} catch (WebAppException e) {
 rc.error = e;
 if (!e.getMessage().contains("not found")) {
  rc.setStatus(res.SC_INTERNAL_SERVER_ERROR);
  render(ErrorPage.class);

代码示例来源:origin: apache/incubator-slider

return webApp.port();
} catch (WebAppException e) {
 if (e.getCause() instanceof IOException) {
  throw (IOException)e.getCause();
 } else {
  throw e;

代码示例来源:origin: Qihoo360/XLearning

+ httpServer.getConnectorAddress(0).getPort());
 } catch (IOException e) {
  throw new WebAppException("Error starting http server", e);
   .at(NetUtils.getHostPortString(bindAddress)).start(webApp);
} catch (WebAppException e){
 throw new WebAppException("Error starting http server", e);
} catch (Exception e){
 throw new WebAppException("Error start http server. For more detail", e);

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

} catch (WebAppException e) {
 rc.error = e;
 if (!e.getMessage().contains("not found")) {
  rc.setStatus(res.SC_INTERNAL_SERVER_ERROR);
  render(ErrorPage.class);

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common

static void throwUnhandled(String className, Method method) {
 throw new WebAppException("Unhandled " + className + "#" + method);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common

static void throwUnhandled(String className, Method method) {
 throw new WebAppException("Unhandled " + className + "#" + method);
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

static void throwUnhandled(String className, Method method) {
 throw new WebAppException("Unhandled " + className + "#" + method);
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

static void throwUnhandled(String className, Method method) {
 throw new WebAppException("Unhandled " + className + "#" + method);
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

protected PrintWriter writer() {
  try {
   return response().getWriter();
  } catch (Exception e) {
   throw new WebAppException(e);
  }
 }
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

public PrintWriter writer() {
 try {
  return response().getWriter();
 } catch (IOException e) {
  throw new WebAppException(e);
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common

public PrintWriter writer() {
 try {
  return response().getWriter();
 } catch (IOException e) {
  throw new WebAppException(e);
 }
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

public ServletOutputStream outputStream() {
 try {
  return response().getOutputStream();
 } catch (IOException e) {
  throw new WebAppException(e);
 }
}

代码示例来源:origin: org.apache.tez/tez-dag

void sendErrorResponse(int sc, String msg, Exception e) {
 if (LOG.isDebugEnabled()) {
  LOG.debug(msg, e);
 }
 try {
  response().sendError(sc, msg);
 } catch (IOException e1) {
  throw new WebAppException(e);
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common

protected PrintWriter writer() {
  try {
   return response().getWriter();
  } catch (Exception e) {
   throw new WebAppException(e);
  }
 }
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common

protected PrintWriter writer() {
  try {
   return response().getWriter();
  } catch (Exception e) {
   throw new WebAppException(e);
  }
 }
}

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common

public RequestContext context() {
 if (context == null) {
  if (injector == null) {
   // One of the downsides of making injection in subclasses optional.
   throw new WebAppException(join("Error accessing RequestContext from\n",
     "a child constructor, either move the usage of the Controller\n",
     "methods out of the constructor or inject the RequestContext\n",
     "into the constructor"));
  }
  context = injector.getInstance(RequestContext.class);
 }
 return context;
}

代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common

public ServletOutputStream outputStream() {
 try {
  return response().getOutputStream();
 } catch (IOException e) {
  throw new WebAppException(e);
 }
}

相关文章

微信公众号

最新文章

更多