@InterfaceAudience.Public @InterfaceStability.Evolving public final class QuotaRetriever extends Object implements Closeable, Iterable<QuotaSettings>
Modifier and Type | Method and Description |
---|---|
void |
close() |
Iterator<QuotaSettings> |
iterator() |
QuotaSettings |
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.
|
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public QuotaSettings next() throws IOException
IOException
public Iterator<QuotaSettings> iterator()
iterator
in interface Iterable<QuotaSettings>
public static QuotaRetriever open(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- Configuration object to use.IOException
- if a remote or network exception occurspublic static QuotaRetriever open(org.apache.hadoop.conf.Configuration conf, QuotaFilter filter) throws IOException
conf
- Configuration object to use.filter
- the QuotaFilterIOException
- if a remote or network exception occursCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.