Home / Function/ getRecords() — netty Function Reference

getRecords() — netty Function Reference

Architecture documentation for the getRecords() function in TestDnsServer.java from the netty codebase.

Function java Buffer Telemetry calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  32307b66_bbe0_e5a5_e862_9789a221602b["getRecords()"]
  3a8754d4_07ab_51a1_d1b5_42eda9f893a5["MapRecordStoreA"]
  32307b66_bbe0_e5a5_e862_9789a221602b -->|defined in| 3a8754d4_07ab_51a1_d1b5_42eda9f893a5
  324cc55f_3212_4860_e147_77ca0e16fb72["getRecords()"]
  324cc55f_3212_4860_e147_77ca0e16fb72 -->|calls| 32307b66_bbe0_e5a5_e862_9789a221602b
  324cc55f_3212_4860_e147_77ca0e16fb72["getRecords()"]
  32307b66_bbe0_e5a5_e862_9789a221602b -->|calls| 324cc55f_3212_4860_e147_77ca0e16fb72
  292c5ecd_495d_f6d9_ebd4_58d466360015["TestResourceRecord()"]
  32307b66_bbe0_e5a5_e862_9789a221602b -->|calls| 292c5ecd_495d_f6d9_ebd4_58d466360015
  style 32307b66_bbe0_e5a5_e862_9789a221602b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/test/java/io/netty/resolver/dns/TestDnsServer.java lines 265–279

        @Override
        public Set<ResourceRecord> getRecords(QuestionRecord questionRecord) {
            String name = questionRecord.getDomainName();
            List<String> addresses = domainMap.get(name);
            if (addresses != null && questionRecord.getRecordType() == RecordType.A) {
                Set<ResourceRecord> records = new LinkedHashSet<ResourceRecord>();
                for (String address : addresses) {
                    Map<String, Object> attributes = new HashMap<String, Object>();
                    attributes.put(DnsAttribute.IP_ADDRESS.toLowerCase(), address);
                    records.add(new TestResourceRecord(name, questionRecord.getRecordType(), attributes));
                }
                return records;
            }
            return null;
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does getRecords() do?
getRecords() is a function in the netty codebase, defined in resolver-dns/src/test/java/io/netty/resolver/dns/TestDnsServer.java.
Where is getRecords() defined?
getRecords() is defined in resolver-dns/src/test/java/io/netty/resolver/dns/TestDnsServer.java at line 265.
What does getRecords() call?
getRecords() calls 2 function(s): TestResourceRecord, getRecords.
What calls getRecords()?
getRecords() is called by 1 function(s): getRecords.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free