当前位置: 首页>>代码示例>>Java>>正文


Java WebAppDescriptor类代码示例

本文整理汇总了Java中com.sun.jersey.test.framework.WebAppDescriptor的典型用法代码示例。如果您正苦于以下问题:Java WebAppDescriptor类的具体用法?Java WebAppDescriptor怎么用?Java WebAppDescriptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


WebAppDescriptor类属于com.sun.jersey.test.framework包,在下文中一共展示了WebAppDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: TestRMWebServicesDelegationTokens

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestRMWebServicesDelegationTokens(int run) throws Exception {
  super(new WebAppDescriptor.Builder(
    "org.apache.hadoop.yarn.server.resourcemanager.webapp")
    .contextListenerClass(GuiceServletConfig.class)
    .filterClass(com.google.inject.servlet.GuiceFilter.class)
    .contextPath("jersey-guice-filter").servletPath("/").build());
  switch (run) {
  case 0:
  default:
    injector = getKerberosAuthInjector();
    break;
  case 1:
    injector = getSimpleAuthInjector();
    break;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:17,代码来源:TestRMWebServicesDelegationTokens.java

示例2: TestNMWebServicesApps

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestNMWebServicesApps() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.nodemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestNMWebServicesApps.java

示例3: TestNMWebServices

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestNMWebServices() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.nodemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestNMWebServices.java

示例4: TestNMWebServicesContainers

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestNMWebServicesContainers() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.nodemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestNMWebServicesContainers.java

示例5: TestRMWebServicesNodeLabels

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestRMWebServicesNodeLabels() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestRMWebServicesNodeLabels.java

示例6: TestRMWebServicesFairScheduler

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestRMWebServicesFairScheduler() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestRMWebServicesFairScheduler.java

示例7: TestRMWebServices

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestRMWebServices() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestRMWebServices.java

示例8: TestRMWebServicesCapacitySched

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestRMWebServicesCapacitySched() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestRMWebServicesCapacitySched.java

示例9: TestRMWebServicesNodes

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestRMWebServicesNodes() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestRMWebServicesNodes.java

示例10: TestRMWebServicesAppsModification

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestRMWebServicesAppsModification(int run) {
  super(new WebAppDescriptor.Builder(
    "org.apache.hadoop.yarn.server.resourcemanager.webapp")
    .contextListenerClass(GuiceServletConfig.class)
    .filterClass(com.google.inject.servlet.GuiceFilter.class)
    .clientConfig(new DefaultClientConfig(JAXBContextResolver.class))
    .contextPath("jersey-guice-filter").servletPath("/").build());
  switch (run) {
  case 0:
  default:
    // No Auth Capacity Scheduler
    injector = getNoAuthInjectorCap();
    break;
  case 1:
    // Simple Auth Capacity Scheduler
    injector = getSimpleAuthInjectorCap();
    break;
  case 2:
    // No Auth Fair Scheduler
    injector = getNoAuthInjectorFair();
    break;
  case 3:
    // Simple Auth Fair Scheduler
    injector = getSimpleAuthInjectorFair();
    break;
  }
}
 
开发者ID:naver,项目名称:hadoop,代码行数:28,代码来源:TestRMWebServicesAppsModification.java

示例11: TestRMWebServicesApps

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestRMWebServicesApps() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.resourcemanager.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestRMWebServicesApps.java

示例12: TestAHSWebServices

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestAHSWebServices(int round) {
  super(new WebAppDescriptor.Builder(
    "org.apache.hadoop.yarn.server.applicationhistoryservice.webapp")
    .contextListenerClass(GuiceServletConfig.class)
    .filterClass(com.google.inject.servlet.GuiceFilter.class)
    .contextPath("jersey-guice-filter").servletPath("/").build());
  this.round = round;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:TestAHSWebServices.java

示例13: TestTimelineWebServices

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestTimelineWebServices() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.yarn.server.applicationhistoryservice.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter")
      .servletPath("/")
      .clientConfig(
          new DefaultClientConfig(YarnJacksonJaxbJsonProvider.class))
      .build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:12,代码来源:TestTimelineWebServices.java

示例14: TestAMWebServicesTasks

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestAMWebServicesTasks() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.app.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestAMWebServicesTasks.java

示例15: TestAMWebServicesJobConf

import com.sun.jersey.test.framework.WebAppDescriptor; //导入依赖的package包/类
public TestAMWebServicesJobConf() {
  super(new WebAppDescriptor.Builder(
      "org.apache.hadoop.mapreduce.v2.app.webapp")
      .contextListenerClass(GuiceServletConfig.class)
      .filterClass(com.google.inject.servlet.GuiceFilter.class)
      .contextPath("jersey-guice-filter").servletPath("/").build());
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:TestAMWebServicesJobConf.java


注:本文中的com.sun.jersey.test.framework.WebAppDescriptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。