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 final 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
ConstructorDescriptionQuotaRetriever
(org.apache.hadoop.conf.Configuration conf, Scan scan) QuotaRetriever
(Connection conn) QuotaRetriever
(Connection conn, Scan scan) QuotaRetriever
(Connection conn, QuotaFilter filter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
init
(Connection conn, Scan scan) iterator()
next()
static QuotaRetriever
open
(org.apache.hadoop.conf.Configuration conf) Deprecated.Since 3.0.0, will be removed in 4.0.0.static QuotaRetriever
open
(org.apache.hadoop.conf.Configuration conf, QuotaFilter filter) Deprecated.Since 3.0.0, will be removed in 4.0.0.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
- Throws:
IOException
-
QuotaRetriever
- Throws:
IOException
-
QuotaRetriever
- Throws:
IOException
-
QuotaRetriever
QuotaRetriever(org.apache.hadoop.conf.Configuration conf, Scan scan) throws IOException - Throws:
IOException
-
-
Method Details
-
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
@Deprecated public static QuotaRetriever open(org.apache.hadoop.conf.Configuration conf) throws IOException Deprecated.Since 3.0.0, will be removed in 4.0.0. UseQuotaRetriever(Configuration, Scan)
instead.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
@Deprecated public static QuotaRetriever open(org.apache.hadoop.conf.Configuration conf, QuotaFilter filter) throws IOException Deprecated.Since 3.0.0, will be removed in 4.0.0. UseQuotaRetriever(Configuration, Scan)
instead.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
-