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.GoraException
public Host get(String key) throws IOException
IOException
public Host getByHostName(String hostName) throws IOException
IOException
public void put(String key, Host host) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2015 The Apache Software Foundation