public interface ServiceRecordProcessor
Modifier and Type | Method and Description |
---|---|
int[] |
getRecordTypes()
Return the DNS record types valid for this processor.
|
void |
initTypeToInfoMapping(ServiceRecord serviceRecord)
Initialize the mapping between DNS record type and record information
for the given service record.
|
void |
manageDNSRecords(org.apache.hadoop.registry.server.dns.RegistryDNS.RegistryCommand command)
Manage the creation and registration of DNS records generated by parsing
a service record.
|
void initTypeToInfoMapping(ServiceRecord serviceRecord) throws Exception
serviceRecord
- the registry service record.Exception
- if encountering an error.int[] getRecordTypes()
void manageDNSRecords(org.apache.hadoop.registry.server.dns.RegistryDNS.RegistryCommand command) throws IOException
command
- the DNS registration command object (e.g. add_record,
remove record)IOException
- if the creation or registration generates an issue.Copyright © 2008–2021 Apache Software Foundation. All rights reserved.