ServiceRecordProcessorApplicationServiceRecordProcessor, ContainerServiceRecordProcessorpublic abstract class BaseServiceRecordProcessor extends java.lang.Object implements ServiceRecordProcessor
| Constructor | Description |
|---|---|
BaseServiceRecordProcessor(ServiceRecord record,
java.lang.String path,
java.lang.String domain,
ZoneSelector zoneSelector) |
Creates a service record processor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String |
getPath() |
Return the path associated with the record.
|
void |
manageDNSRecords(org.apache.hadoop.registry.server.dns.RegistryDNS.RegistryCommand command) |
Manages the creation and registration of service record generated DNS
records.
|
protected void |
registerRecordDescriptor(int type,
java.util.List<org.apache.hadoop.registry.server.dns.BaseServiceRecordProcessor.RecordDescriptor> recordDescriptors) |
Add the DNS record descriptor objects to the record type to descriptor
mapping.
|
protected void |
registerRecordDescriptor(int type,
org.apache.hadoop.registry.server.dns.BaseServiceRecordProcessor.RecordDescriptor recordDescriptor) |
Add the DNS record descriptor object to the record type to descriptor
mapping.
|
protected org.xbill.DNS.Name |
reverseIP(java.lang.String ip) |
Reverse the string representation of the input IP address.
|
protected void |
setPath(java.lang.String path) |
Set the path associated with the record.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRecordTypes, initTypeToInfoMappingpublic BaseServiceRecordProcessor(ServiceRecord record, java.lang.String path, java.lang.String domain, ZoneSelector zoneSelector) throws java.lang.Exception
record - the service record.path - the node path for the record in the registry.domain - the target DNS domain for the service record
associated DNS records.zoneSelector - A selector of the best zone for a given DNS name.java.lang.Exception - if an issue is generated during instantiation.protected org.xbill.DNS.Name reverseIP(java.lang.String ip)
throws java.net.UnknownHostException
ip - the string representation of the IP address.java.net.UnknownHostException - if the ip is unknown.public void manageDNSRecords(org.apache.hadoop.registry.server.dns.RegistryDNS.RegistryCommand command)
throws java.io.IOException
manageDNSRecords in interface ServiceRecordProcessorcommand - the DNS registration command object (e.g. add_record,
remove record)java.io.IOException - if the creation or registration generates an issue.protected void registerRecordDescriptor(int type,
org.apache.hadoop.registry.server.dns.BaseServiceRecordProcessor.RecordDescriptor recordDescriptor)
type - the DNS record type.recordDescriptor - the DNS record descriptorprotected void registerRecordDescriptor(int type,
java.util.List<org.apache.hadoop.registry.server.dns.BaseServiceRecordProcessor.RecordDescriptor> recordDescriptors)
type - the DNS record type.recordDescriptors - the DNS record descriptorsprotected java.lang.String getPath()
protected void setPath(java.lang.String path)
path - the path.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.