org.jclouds.dynect.v3.domain.rdata
Class SRVData

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingMap<String,Object>
          extended by org.jclouds.dynect.v3.domain.rdata.SRVData
All Implemented Interfaces:
Map<String,Object>

public class SRVData
extends com.google.common.collect.ForwardingMap<String,Object>

Corresponds to the binary representation of the SRV (Service) RData

Example

 SRVData rdata = SRVData.builder()
                        .priority(0)
                        .weight(1)
                        .port(80)
                        .target("www.foo.com.").build()
 

See Also:
RFC 2782

Nested Class Summary
static class SRVData.Builder
           
 
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
static SRVData.Builder builder()
           
protected  Map<String,Object> delegate()
           
 int getPort()
          The port on this target host of this service.
 int getPriority()
          The priority of this target host.
 String getTarget()
          The domain name of the target host.
 int getWeight()
          The weight field specifies a relative weight for entries with the same priority.
 SRVData.Builder toBuilder()
           
 
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
 
Methods inherited from class com.google.common.collect.ForwardingObject
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getPriority

public int getPriority()
The priority of this target host. A client MUST attempt to contact the target host with the lowest-numbered priority it can reach; target hosts with the same priority SHOULD be tried in an order defined by the weight field.


getWeight

public int getWeight()
The weight field specifies a relative weight for entries with the same priority. Larger weights SHOULD be given a proportionately higher probability of being selected.


getPort

public int getPort()
The port on this target host of this service.


getTarget

public String getTarget()
The domain name of the target host. There MUST be one or more address records for this name, the name MUST NOT be an alias.


delegate

protected Map<String,Object> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingMap<String,Object>

builder

public static SRVData.Builder builder()

toBuilder

public SRVData.Builder toBuilder()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.