Package org.apache.slider.server.appmaster.web.rest.management.resources

Examples of org.apache.slider.server.appmaster.web.rest.management.resources.AggregateConfResource


  @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
  public ConfTreeResource getConfTreeResource(@PathParam("config") String config,
                                              @Context UriInfo uriInfo,
                                              @Context HttpServletResponse res) {
    init(res);
    AggregateConfResource aggregateConf =
        ResourceFactory.createAggregateConfResource(getAggregateConf(),
                                                    uriInfo.getBaseUriBuilder()
                                                    .path(RestPaths.SLIDER_CONTEXT_ROOT).path(
                                                    "mgmt/app"));
    return aggregateConf.getConfTree(config);
  }
View Full Code Here


    WebResource r = resource();
    ClientResponse response = r.path("ws").path("v1").path("slider").path("mgmt").path("app")
        .accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
    assertEquals(200, response.getStatus());
    assertEquals(MediaType.APPLICATION_JSON_TYPE, response.getType());
    AggregateConfResource json = response.getEntity(AggregateConfResource.class);
    assertEquals("wrong href",
                 "http://localhost:9998/slideram/ws/v1/slider/mgmt/app",
                 json.getHref());
    assertNotNull("no resources", json.getResources());
    assertNotNull("no internal", json.getInternal());
    assertNotNull("no appConf", json.getAppConf());
  }
View Full Code Here

TOP

Related Classes of org.apache.slider.server.appmaster.web.rest.management.resources.AggregateConfResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.