org.apache.hadoop.hbase.rest
Class VersionResource

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

@InterfaceAudience.Private
public class VersionResource
extends ResourceBase

Implements REST software version reporting

/version/rest

/version (alias for /version/rest)


Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.rest.Constants
CRLF, DEFAULT_LISTEN_PORT, DEFAULT_MAX_AGE, FILTER_CLASSES, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF, MIMETYPE_TEXT, MIMETYPE_XML, NOCACHE_PARAM_NAME, REST_AUTHENTICATION_PRINCIPAL, REST_AUTHENTICATION_TYPE, REST_DNS_INTERFACE, REST_DNS_NAMESERVER, REST_KERBEROS_PRINCIPAL, REST_KEYTAB_FILE, REST_SSL_ENABLED, REST_SSL_KEYSTORE_KEYPASSWORD, REST_SSL_KEYSTORE_PASSWORD, REST_SSL_KEYSTORE_STORE, ROW_KEYS_PARAM_NAME, SCAN_BATCH_SIZE, SCAN_COLUMN, SCAN_END_ROW, SCAN_END_TIME, SCAN_FETCH_SIZE, SCAN_LIMIT, SCAN_MAX_VERSIONS, SCAN_START_ROW, SCAN_START_TIME, VERSION_STRING
 
Constructor Summary
VersionResource()
          Constructor
 
Method Summary
 javax.ws.rs.core.Response get(javax.servlet.ServletContext context, javax.ws.rs.core.UriInfo uriInfo)
          Build a response for a version request.
 StorageClusterVersionResource getClusterVersionResource()
          Dispatch to StorageClusterVersionResource
 VersionResource getVersionResource()
          Dispatch /version/rest to self.
 
Methods inherited from class org.apache.hadoop.hbase.rest.ResourceBase
processException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionResource

public VersionResource()
                throws IOException
Constructor

Throws:
IOException
Method Detail

get

public javax.ws.rs.core.Response get(@Context
                                     javax.servlet.ServletContext context,
                                     @Context
                                     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

public StorageClusterVersionResource getClusterVersionResource()
                                                        throws IOException
Dispatch to StorageClusterVersionResource

Throws:
IOException

getVersionResource

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



Copyright © 2015 The Apache Software Foundation. All rights reserved.