org.apache.hadoop.hbase.rest
Class RESTServlet

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

public class RESTServlet
extends Object
implements Constants

Singleton class encapsulating global REST servlet state and functions.


Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.rest.Constants
DEFAULT_MAX_AGE, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_TEXT, MIMETYPE_XML, VERSION_STRING
 
Constructor Summary
RESTServlet()
          Constructor
 
Method Summary
static RESTServlet getInstance()
           
 int getMaxAge(String tableName)
           
 void invalidateMaxAge(String tableName)
          Signal that a previously calculated maximum cache age has been invalidated by a schema change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTServlet

public RESTServlet()
            throws IOException
Constructor

Throws:
IOException
Method Detail

getInstance

public static RESTServlet getInstance()
                               throws IOException
Returns:
the RESTServlet singleton instance
Throws:
IOException

getMaxAge

public int getMaxAge(String tableName)
              throws IOException
Parameters:
tableName - the table name
Returns:
the maximum cache age suitable for use with this table, in seconds
Throws:
IOException

invalidateMaxAge

public void invalidateMaxAge(String tableName)
Signal that a previously calculated maximum cache age has been invalidated by a schema change.

Parameters:
tableName - the table name


Copyright © 2010 Apache Software Foundation. All Rights Reserved.