public class HostDb extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HOSTDB_CONCURRENCY_LEVEL |
static int |
DEFAULT_LRU_SIZE |
static String |
HOSTDB_CONCURRENCY_LEVEL |
static String |
HOSTDB_LRU_SIZE |
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
HostDb(Configuration conf) |
public static final org.apache.commons.logging.Log LOG
public static final String HOSTDB_LRU_SIZE
public static final int DEFAULT_LRU_SIZE
public static final String HOSTDB_CONCURRENCY_LEVEL
public static final int DEFAULT_HOSTDB_CONCURRENCY_LEVEL
public HostDb(Configuration conf) throws org.apache.gora.util.GoraException
org.apache.gora.util.GoraExceptionpublic Host get(String key) throws IOException
IOExceptionpublic Host getByHostName(String hostName) throws IOException
IOExceptionpublic void put(String key, Host host) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015 The Apache Software Foundation