Package org.apache.hadoop.hbase.quotas
Class QuotaRetriever
java.lang.Object
org.apache.hadoop.hbase.quotas.QuotaRetriever
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<QuotaSettings>
Scanner to iterate over the quota settings.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Queue<QuotaSettings>
private Connection
Connection to use.private boolean
Should QutoaRetriever manage the state of the connection, or leave it be.private static final org.slf4j.Logger
private ResultScanner
private Table
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
(package private) void
(package private) void
init
(Connection conn, Scan scan) iterator()
next()
static QuotaRetriever
open
(org.apache.hadoop.conf.Configuration conf) Open a QuotaRetriever with no filter, all the quota settings will be returned.static QuotaRetriever
open
(org.apache.hadoop.conf.Configuration conf, QuotaFilter filter) Open a QuotaRetriever with the specified filter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
LOG
-
cache
-
scanner
-
connection
Connection to use. Could pass one in and have this class use it but this class wants to be standalone. -
table
-
isManagedConnection
Should QutoaRetriever manage the state of the connection, or leave it be.
-
-
Constructor Details
-
QuotaRetriever
-
-
Method Details
-
init
- Throws:
IOException
-
init
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
next
- Throws:
IOException
-
iterator
- Specified by:
iterator
in interfaceIterable<QuotaSettings>
-
open
Open a QuotaRetriever with no filter, all the quota settings will be returned.- Parameters:
conf
- Configuration object to use.- Returns:
- the QuotaRetriever
- Throws:
IOException
- if a remote or network exception occurs
-
open
public static QuotaRetriever open(org.apache.hadoop.conf.Configuration conf, QuotaFilter filter) throws IOException Open a QuotaRetriever with the specified filter.- Parameters:
conf
- Configuration object to use.filter
- the QuotaFilter- Returns:
- the QuotaRetriever
- Throws:
IOException
- if a remote or network exception occurs
-