public class DNSManager extends 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 String |
_rcsid |
protected static DNSManager.DNSCacheClass |
dnsCacheClass |
protected static String |
expirationField |
protected static String |
fqdnField |
protected static String |
hostField |
protected static String |
ipaddressField |
dbInterface, tableName
Constructor and Description |
---|
DNSManager(IThreadContext tc,
IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
deinstall()
Uninstall the manager.
|
protected static String |
getDNSKey(String hostName)
Construct a key which represents an individual host name.
|
void |
install()
Install the manager.
|
DNSManager.DNSInfo |
lookup(String hostName,
long currentTime)
Given a host name, look up the ip address and fqdn.
|
protected DNSManager.DNSInfo |
readDNSInfo(String hostName)
Read DNS data, if it exists.
|
void |
writeDNSData(String hostName,
String fqdn,
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, sleepFor
public static final String _rcsid
protected static DNSManager.DNSCacheClass dnsCacheClass
protected static final String hostField
protected static final String fqdnField
protected static final String ipaddressField
protected static final String expirationField
public DNSManager(IThreadContext tc, IDBInterface database) throws ManifoldCFException
tc
- is the thread context.database
- is the database handle.ManifoldCFException
public void install() throws ManifoldCFException
ManifoldCFException
public void deinstall() throws ManifoldCFException
ManifoldCFException
public DNSManager.DNSInfo lookup(String hostName, long currentTime) throws ManifoldCFException
ManifoldCFException
public void writeDNSData(String hostName, String fqdn, String ipaddress, long expirationTime) throws 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.ManifoldCFException
protected static String getDNSKey(String hostName)
hostName
- is the name of the connector.protected DNSManager.DNSInfo readDNSInfo(String hostName) throws ManifoldCFException
ManifoldCFException