org.apache.nutch.host
Class HostDb
java.lang.Object
org.apache.nutch.host.HostDb
- All Implemented Interfaces:
- Closeable
public class HostDb
- extends Object
- implements Closeable
A caching wrapper for the host datastore.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
HOSTDB_LRU_SIZE
public static final String HOSTDB_LRU_SIZE
- See Also:
- Constant Field Values
DEFAULT_LRU_SIZE
public static final int DEFAULT_LRU_SIZE
- See Also:
- Constant Field Values
HOSTDB_CONCURRENCY_LEVEL
public static final String HOSTDB_CONCURRENCY_LEVEL
- See Also:
- Constant Field Values
DEFAULT_HOSTDB_CONCURRENCY_LEVEL
public static final int DEFAULT_HOSTDB_CONCURRENCY_LEVEL
- See Also:
- Constant Field Values
HostDb
public HostDb(Configuration conf)
throws IOException
- Throws:
IOException
get
public Host get(String key)
throws IOException
- Throws:
IOException
getByHostName
public Host getByHostName(String hostName)
throws IOException
- Throws:
IOException
put
public void put(String key,
Host host)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation