DNSRecord.Address, DNSRecord.HostInformation, DNSRecord.IPv4Address, DNSRecord.IPv6Address, DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text| Constructor and Description |
|---|
Service(String name,
DNSRecordClass recordClass,
boolean unique,
int ttl,
int priority,
int weight,
int port,
String server) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort() |
int |
getPriority() |
ServiceEvent |
getServiceEvent(JmDNSImpl dns)
Creates and return a service event for this record.
|
ServiceInfo |
getServiceInfo(boolean persistent)
Return a service information associated with that record if appropriate.
|
int |
getWeight() |
boolean |
isSingleValued()
Determine if a record can have multiple values in the cache.
|
protected void |
toByteArray(DataOutputStream dout) |
protected void |
toString(StringBuilder sb) |
equals, getRecordSource, getServiceInfo, getTTL, incrementRefreshPercentage, isExpired, isStale, isStaleAndShouldBeRefreshed, setRecordSource, setTTLcompareTo, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isSameType, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, matchRecordClass, matchRecordType, sameSubtype, toByteArray, toStringpublic Service(String name, DNSRecordClass recordClass, boolean unique, int ttl, int priority, int weight, int port, String server)
protected void toByteArray(DataOutputStream dout) throws IOException
toByteArray in class DNSEntryIOExceptionpublic int getPriority()
public int getWeight()
public int getPort()
public boolean isSingleValued()
DNSRecordisSingleValued in class DNSRecordfalse if this record can have multiple values in the cache, true otherwise.public ServiceInfo getServiceInfo(boolean persistent)
DNSRecordgetServiceInfo in class DNSRecordpersistent - if true ServiceListener.resolveService will be called whenever new new information is received.public ServiceEvent getServiceEvent(JmDNSImpl dns)
DNSRecordgetServiceEvent in class DNSRecorddns - DNS serviced by this eventprotected void toString(StringBuilder sb)
Copyright © 2002–2017 JmDNS. All rights reserved.