public interface DNSService
| Modifier and Type | Method and Description |
|---|---|
void |
addDNS(java.util.Collection<org.nhindirect.config.store.DNSRecord> records)
Adds multiple new DNS records to the store.
|
java.util.Collection<org.nhindirect.config.store.DNSRecord> |
getDNSByName(java.lang.String name)
Gets DNS records by record name.
|
java.util.Collection<org.nhindirect.config.store.DNSRecord> |
getDNSByNameAndType(java.lang.String name,
int type)
Gets DNS records by record name and a specific record type.
|
org.nhindirect.config.store.DNSRecord |
getDNSByRecordId(long recordId)
Gets a single DNS record for an internal record id.
|
java.util.Collection<org.nhindirect.config.store.DNSRecord> |
getDNSByRecordIds(long[] recordIds)
Gets DNS records by the internal record ids.
|
java.util.Collection<org.nhindirect.config.store.DNSRecord> |
getDNSByType(int type)
Gets all DNS records or a given type.
|
int |
getDNSCount()
Gets the number of records in the DNS store.
|
void |
removeDNS(java.util.Collection<org.nhindirect.config.store.DNSRecord> records)
Removes DNS records matching the DNS records' name and type.
|
void |
removeDNSByRecordId(long recordId)
Removes a single DNS record by an existing internal record id.
|
void |
removeDNSByRecordIds(long[] recordIds)
Removes DNS records by existing internal record ids.
|
void |
updateDNS(long recordId,
org.nhindirect.config.store.DNSRecord record)
Update a DNS record for a specific internal id.
|
int getDNSCount()
throws ConfigurationServiceException
ConfigurationServiceExceptionjava.util.Collection<org.nhindirect.config.store.DNSRecord> getDNSByName(java.lang.String name)
throws ConfigurationServiceException
name - The record name.ConfigurationServiceExceptionjava.util.Collection<org.nhindirect.config.store.DNSRecord> getDNSByType(int type)
throws ConfigurationServiceException
type - The record type to search for.ConfigurationServiceExceptionjava.util.Collection<org.nhindirect.config.store.DNSRecord> getDNSByNameAndType(java.lang.String name,
int type)
throws ConfigurationServiceException
name - The record name.type - The record type to search for.ConfigurationServiceExceptionorg.nhindirect.config.store.DNSRecord getDNSByRecordId(long recordId)
throws ConfigurationServiceException
recordId - The internal record id to search for.ConfigurationServiceExceptionjava.util.Collection<org.nhindirect.config.store.DNSRecord> getDNSByRecordIds(long[] recordIds)
throws ConfigurationServiceException
recordIds - Array of record ids to search for.ConfigurationServiceExceptionvoid addDNS(java.util.Collection<org.nhindirect.config.store.DNSRecord> records)
throws ConfigurationServiceException
records - The records to add the store. If a record already exists, then an exception is thrown.ConfigurationServiceExceptionvoid removeDNS(java.util.Collection<org.nhindirect.config.store.DNSRecord> records)
throws ConfigurationServiceException
records - Records to delete. Matching is done by name and type.ConfigurationServiceExceptionvoid removeDNSByRecordId(long recordId)
throws ConfigurationServiceException
recordId - The internal record id to delete.ConfigurationServiceExceptionvoid removeDNSByRecordIds(long[] recordIds)
throws ConfigurationServiceException
recordIds - The internal record ids to delete.ConfigurationServiceExceptionvoid updateDNS(long recordId,
org.nhindirect.config.store.DNSRecord record)
throws ConfigurationServiceException
recordId - The internal record id to update.record - Data to update the record with.ConfigurationServiceExceptionCopyright © 2018. All Rights Reserved.