Class ApplicationServiceRecordProcessor
java.lang.Object
org.apache.hadoop.registry.server.dns.BaseServiceRecordProcessor
org.apache.hadoop.registry.server.dns.ApplicationServiceRecordProcessor
- All Implemented Interfaces:
ServiceRecordProcessor
A processor for generating application DNS records from registry service
records.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationServiceRecordProcessor(ServiceRecord record, String path, String domain, ZoneSelector zoneSelector) Create an application service record processor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateAAAAInfo(ServiceRecord record) Create an application AAAA record descriptor.protected voidcreateAInfo(ServiceRecord record) Create an application A record descriptor.protected voidcreateCNAMEInfo(ServiceRecord serviceRecord) Create an application CNAME record descriptor.protected voidcreateSRVInfo(ServiceRecord serviceRecord) Create an application SRV record descriptor.protected voidcreateTXTInfo(ServiceRecord serviceRecord) Create an application TXT record descriptor.int[]Returns the record types associated with a container service record.voidinitTypeToInfoMapping(ServiceRecord serviceRecord) Initializes the DNS record type to descriptor mapping based on the provided service record.Methods inherited from class org.apache.hadoop.registry.server.dns.BaseServiceRecordProcessor
getPath, manageDNSRecords, registerRecordDescriptor, registerRecordDescriptor, reverseIP, setPath
-
Constructor Details
-
ApplicationServiceRecordProcessor
public ApplicationServiceRecordProcessor(ServiceRecord record, String path, String domain, ZoneSelector zoneSelector) throws Exception Create an application service record processor.- Parameters:
record- the service recordpath- the service record registry node pathdomain- the DNS zone/domain namezoneSelector- returns the zone associated with the provided name.- Throws:
Exception- if an issue is generated during instantiation.
-
-
Method Details
-
initTypeToInfoMapping
Initializes the DNS record type to descriptor mapping based on the provided service record.- Parameters:
serviceRecord- the registry service record.- Throws:
Exception- if an issue is encountered.
-
createTXTInfo
Create an application TXT record descriptor.- Parameters:
serviceRecord- the service record.- Throws:
Exception- if there is an issue during descriptor creation.
-
createSRVInfo
Create an application SRV record descriptor.- Parameters:
serviceRecord- the service record.- Throws:
Exception- if there is an issue during descriptor creation.
-
createCNAMEInfo
Create an application CNAME record descriptor.- Parameters:
serviceRecord- the service record.- Throws:
Exception- if there is an issue during descriptor creation.
-
createAAAAInfo
Create an application AAAA record descriptor.- Parameters:
record- the service record.- Throws:
Exception- if there is an issue during descriptor creation.
-
createAInfo
Create an application A record descriptor.- Parameters:
record- the service record.- Throws:
Exception- if there is an issue during descriptor creation.
-
getRecordTypes
public int[] getRecordTypes()Returns the record types associated with a container service record.- Returns:
- the record type array
-