Package org.apache.hadoop.hbase.stargate.model

Examples of org.apache.hadoop.hbase.stargate.model.VersionModel


      final @Context UriInfo uriInfo) {
    if (LOG.isDebugEnabled()) {
      LOG.debug("GET " + uriInfo.getAbsolutePath());
    }
    servlet.getMetrics().incrementRequests(1);
    ResponseBuilder response = Response.ok(new VersionModel(context));
    response.cacheControl(cacheControl);
    return response.build();
  }
View Full Code Here


    MIMETYPE_PROTOBUF})
  public Response get(@Context ServletContext context, @Context UriInfo uriInfo) {
    if (LOG.isDebugEnabled()) {
      LOG.debug("GET " + uriInfo.getAbsolutePath());
    }
    ResponseBuilder response = Response.ok(new VersionModel(context));
    response.cacheControl(cacheControl);
    return response.build();
  }
View Full Code Here

  }

  public void testGetStargateVersionXML() throws IOException, JAXBException {
    Response response = client.get(Constants.PATH_VERSION, MIMETYPE_XML);
    assertTrue(response.getCode() == 200);
    VersionModel model = (VersionModel)
      context.createUnmarshaller().unmarshal(
        new ByteArrayInputStream(response.getBody()));
    validate(model);
    LOG.info("success retrieving Stargate version as XML");
  }
View Full Code Here

  }

  public void testGetStargateVersionPB() throws IOException {
    Response response = client.get(Constants.PATH_VERSION, MIMETYPE_PROTOBUF);
    assertTrue(response.getCode() == 200);
    VersionModel model = new VersionModel();
    model.getObjectFromMessage(response.getBody());
    validate(model);
    LOG.info("success retrieving Stargate version as protobuf");
  }
View Full Code Here

  }

  public void testGetStargateVersionXML() throws IOException, JAXBException {
    Response response = client.get("/version", MIMETYPE_XML);
    assertTrue(response.getCode() == 200);
    VersionModel model = (VersionModel)
      context.createUnmarshaller().unmarshal(
        new ByteArrayInputStream(response.getBody()));
    validate(model);
    LOG.info("success retrieving Stargate version as XML");
  }
View Full Code Here

  }

  public void testGetStargateVersionPB() throws IOException {
    Response response = client.get("/version", MIMETYPE_PROTOBUF);
    assertTrue(response.getCode() == 200);
    VersionModel model = new VersionModel();
    model.getObjectFromMessage(response.getBody());
    validate(model);
    LOG.info("success retrieving Stargate version as protobuf");
  }
View Full Code Here

      final @Context UriInfo uriInfo) {
    if (LOG.isDebugEnabled()) {
      LOG.debug("GET " + uriInfo.getAbsolutePath());
    }
    servlet.getMetrics().incrementRequests(1);
    ResponseBuilder response = Response.ok(new VersionModel(context));
    response.cacheControl(cacheControl);
    return response.build();
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.stargate.model.VersionModel

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.