@InterfaceAudience.Public @InterfaceStability.Evolving public final class QuotaRetriever extends java.lang.Object implements java.io.Closeable, java.lang.Iterable<QuotaSettings>
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Iterator<QuotaSettings> |
iterator() |
QuotaSettings |
next() |
static QuotaRetriever |
open(Configuration conf)
Open a QuotaRetriever with no filter, all the quota settings will be returned.
|
static QuotaRetriever |
open(Configuration conf,
QuotaFilter filter)
Open a QuotaRetriever with the specified filter.
|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic QuotaSettings next() throws java.io.IOException
java.io.IOExceptionpublic java.util.Iterator<QuotaSettings> iterator()
iterator in interface java.lang.Iterable<QuotaSettings>public static QuotaRetriever open(Configuration conf) throws java.io.IOException
conf - Configuration object to use.java.io.IOException - if a remote or network exception occurspublic static QuotaRetriever open(Configuration conf, QuotaFilter filter) throws java.io.IOException
conf - Configuration object to use.filter - the QuotaFilterjava.io.IOException - if a remote or network exception occurs