public class DNSManager
extends org.apache.manifoldcf.core.database.BaseTable
| Field | Type | Description |
|---|---|---|
| hostname | VARCHAR(255) | Primary Key |
| canonicalhostname | VARCHAR(255) | |
| ipaddress | VARCHAR(16) | |
| expirationtime | BIGINT |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DNSManager.DNSCacheClass
Cache class for robots.
|
protected static class |
DNSManager.DNSInfo
This is a cached data item.
|
protected static class |
DNSManager.HostDescription
This is the object description for a robots host object.
|
protected static class |
DNSManager.HostExecutor
This is the executor object for locating robots host objects.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected static DNSManager.DNSCacheClass |
dnsCacheClass |
protected static java.lang.String |
expirationField |
protected static java.lang.String |
fqdnField |
protected static java.lang.String |
hostField |
protected static java.lang.String |
ipaddressField |
| Constructor and Description |
|---|
DNSManager(org.apache.manifoldcf.core.interfaces.IThreadContext tc,
org.apache.manifoldcf.core.interfaces.IDBInterface database)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deinstall()
Uninstall the manager.
|
protected static java.lang.String |
getDNSKey(java.lang.String hostName)
Construct a key which represents an individual host name.
|
void |
install()
Install the manager.
|
DNSManager.DNSInfo |
lookup(java.lang.String hostName,
long currentTime)
Given a host name, look up the ip address and fqdn.
|
protected DNSManager.DNSInfo |
readDNSInfo(java.lang.String hostName)
Read DNS data, if it exists.
|
void |
writeDNSData(java.lang.String hostName,
java.lang.String fqdn,
java.lang.String ipaddress,
long expirationTime)
Write DNS data, replacing any existing row.
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepForpublic static final java.lang.String _rcsid
protected static DNSManager.DNSCacheClass dnsCacheClass
protected static final java.lang.String hostField
protected static final java.lang.String fqdnField
protected static final java.lang.String ipaddressField
protected static final java.lang.String expirationField
public DNSManager(org.apache.manifoldcf.core.interfaces.IThreadContext tc,
org.apache.manifoldcf.core.interfaces.IDBInterface database)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
tc - is the thread context.database - is the database handle.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void install()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void deinstall()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic DNSManager.DNSInfo lookup(java.lang.String hostName, long currentTime) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void writeDNSData(java.lang.String hostName,
java.lang.String fqdn,
java.lang.String ipaddress,
long expirationTime)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
hostName - is the host.fqdn - is the canonical host name.ipaddress - is the host ip address, in standard form.expirationTime - is the time this data should expire.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected static java.lang.String getDNSKey(java.lang.String hostName)
hostName - is the name of the connector.protected DNSManager.DNSInfo readDNSInfo(java.lang.String hostName) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFException