public class HostDb
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_HOSTDB_CONCURRENCY_LEVEL |
static int |
DEFAULT_LRU_SIZE |
static java.lang.String |
HOSTDB_CONCURRENCY_LEVEL |
static java.lang.String |
HOSTDB_LRU_SIZE |
Constructor and Description |
---|
HostDb(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Host |
get(java.lang.String key) |
Host |
getByHostName(java.lang.String hostName) |
void |
put(java.lang.String key,
Host host) |
public static final java.lang.String HOSTDB_LRU_SIZE
public static final int DEFAULT_LRU_SIZE
public static final java.lang.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(java.lang.String key) throws java.io.IOException
java.io.IOException
public Host getByHostName(java.lang.String hostName) throws java.io.IOException
java.io.IOException
public void put(java.lang.String key, Host host) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2019 The Apache Software Foundation