org.apache.hadoop.hbase.rest
Class RESTServlet
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESTServlet
public RESTServlet()
throws IOException
- Constructor
- Throws:
IOException
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.