A thin wrapper around http://www.dnsjava.org/ to make use of DNS SRV records for dynamic server/cluster configuration.
Name of the service in a format compatible with our use of DNS SRV record feature.
Name of the service in a format compatible with our use of DNS SRV record feature. Basically a format-validated String.
We support 2 use cases:
ServiceLookup
Used to create a canonical host:port connection string to some service or cluster.
Used to create a canonical host:port connection string to some service or cluster.
ServiceLookup
A thin wrapper around http://www.dnsjava.org/ to make use of DNS SRV records for dynamic server/cluster configuration.
http://en.wikipedia.org/wiki/SRV_record http://tools.ietf.org/html/rfc2782
SRV record format: _service._proto.name. TTL class SRV priority weight port target.
service: the symbolic name of the desired service. proto: the transport protocol of the desired service; this is usually either TCP or UDP. name: the domain name for which this record is valid, ending in a dot. TTL: standard DNS time to live field. class: standard DNS class field (this is always IN). priority: the priority of the target host, lower value means more preferred. weight: A relative weight for records with the same priority. port: the TCP or UDP port on which the service is to be found. target: the canonical hostname of the machine providing the service, ending in a dot.
SRVRecord(Name name, int dclass, long ttl, int priority, int weight, int port, Name target)