public class ContainerServiceRecordProcessor extends BaseServiceRecordProcessor
Constructor and Description |
---|
ContainerServiceRecordProcessor(ServiceRecord record,
String path,
String domain,
ZoneSelector zoneSelector)
Create a container service record processor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createAAAAInfo(ServiceRecord record)
Creates a container AAAA (IPv6) record descriptor.
|
protected void |
createAInfo(ServiceRecord record)
Creates a container A (IPv4) record descriptor.
|
protected void |
createPTRInfo(ServiceRecord record)
Creates a container PTR record descriptor.
|
protected void |
createTXTInfo(ServiceRecord serviceRecord)
Create a container TXT record descriptor.
|
int[] |
getRecordTypes()
Returns the record types associated with a container service record.
|
void |
initTypeToInfoMapping(ServiceRecord serviceRecord)
Initializes the DNS record type to descriptor mapping based on the
provided service record.
|
getPath, manageDNSRecords, registerRecordDescriptor, registerRecordDescriptor, reverseIP, setPath
public ContainerServiceRecordProcessor(ServiceRecord record, String path, String domain, ZoneSelector zoneSelector) throws Exception
record
- the service recordpath
- the service record registry node pathdomain
- the DNS zone/domain namezoneSelector
- returns the zone associated with the provided name.Exception
- if an issue is generated during instantiation.public void initTypeToInfoMapping(ServiceRecord serviceRecord) throws Exception
serviceRecord
- the registry service record.Exception
- if an issue arises.protected void createTXTInfo(ServiceRecord serviceRecord) throws Exception
serviceRecord
- the service record.Exception
- if the descriptor creation yields an issue.protected void createPTRInfo(ServiceRecord record) throws Exception
record
- the service record.Exception
- if the descriptor creation yields an issue.protected void createAAAAInfo(ServiceRecord record) throws Exception
record
- the service recordException
- if the descriptor creation yields an issue.protected void createAInfo(ServiceRecord record) throws Exception
record
- service record.Exception
- if the descriptor creation yields an issue.public int[] getRecordTypes()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.