Class SRVData

java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<String,Object>
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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    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

    Modifier and Type
    Method
    Description
     
    protected Map<String,Object>
     
    int
    The port on this target host of this service.
    int
    The priority of this target host.
    The domain name of the target host.
    int
    The weight field specifies a relative weight for entries with the same priority.
     

    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 Details

    • 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()
      Specified by:
      delegate in class com.google.common.collect.ForwardingMap<String,Object>
    • builder

      public static SRVData.Builder builder()
    • toBuilder

      public SRVData.Builder toBuilder()