Class VersionResource

java.lang.Object
org.apache.hadoop.hbase.rest.ResourceBase
org.apache.hadoop.hbase.rest.VersionResource
All Implemented Interfaces:
Constants

@Private public class VersionResource extends ResourceBase
Implements REST software version reporting

/version/rest

/version (alias for /version/rest)

  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • cacheControl

      static org.apache.hbase.thirdparty.javax.ws.rs.core.CacheControl cacheControl
  • Constructor Details

  • Method Details

    • get

      @GET @Produces({"text/plain","text/xml","application/json","application/x-protobuf","application/protobuf"}) public org.apache.hbase.thirdparty.javax.ws.rs.core.Response get(@Context javax.servlet.ServletContext context, @Context org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo)
      Build a response for a version request.
      Parameters:
      context - servlet context
      uriInfo - (JAX-RS context variable) request URL
      Returns:
      a response for a version request
    • getClusterVersionResource

      Dispatch to StorageClusterVersionResource
      Throws:
      IOException
    • getVersionResource

      @Path("rest") public VersionResource getVersionResource()
      Dispatch /version/rest to self.