org.jclouds.glesys.domain
Class Domain

java.lang.Object
  extended by org.jclouds.glesys.domain.Domain

public class Domain
extends Object

Domain data for a Glesys account.

Author:
Adam Lowe
See Also:

Nested Class Summary
static class Domain.Builder<T extends Domain.Builder<T>>
           
 
Constructor Summary
protected Domain(String domainName, Date createTime, int recordCount, GleSYSBoolean useGlesysNameServer, String primaryNameServer, String responsiblePerson, int ttl, int refresh, int retry, int expire, int minimum)
           
 
Method Summary
static Domain.Builder<?> builder()
           
 boolean equals(Object obj)
           
 Date getCreateTime()
           
 int getExpire()
          The number of seconds a master or slave will wait before considering the data stale if it cannot reach the primary name server
 int getMinimum()
          The minimum/default TTL if the domain does not specify ttl
 String getName()
           
 String getPrimaryNameServer()
           
 int getRecordCount()
           
 int getRefresh()
          The number of seconds between update requests from secondary and slave name servers
 String getResponsiblePerson()
          The E-mail address of the person responsible for this domain (reformatted with '.' at end).
 int getRetry()
          The number of seconds the secondary/slave will wait before retrying when the last attempt failed
 int getTtl()
          TTL (time to live).
 int hashCode()
           
 boolean isUseGlesysNameServer()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Domain.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Domain

@ConstructorProperties(value={"domainname","createtime","recordcount","usingglesysnameserver","primarynameserver","responsibleperson","ttl","refresh","retry","expire","minimum"})
protected Domain(String domainName,
                                            @Nullable
                                            Date createTime,
                                            int recordCount,
                                            GleSYSBoolean useGlesysNameServer,
                                            @Nullable
                                            String primaryNameServer,
                                            @Nullable
                                            String responsiblePerson,
                                            int ttl,
                                            int refresh,
                                            int retry,
                                            int expire,
                                            int minimum)
Method Detail

builder

public static Domain.Builder<?> builder()

toBuilder

public Domain.Builder<?> toBuilder()

getName

public String getName()
Returns:
the domain name, ex. "jclouds.org"

getCreateTime

public Date getCreateTime()
Returns:
the date the domain was registered with GleSYS

getRecordCount

public int getRecordCount()
Returns:
the number of DNS records for this domain

isUseGlesysNameServer

public boolean isUseGlesysNameServer()
Returns:
true if a GleSYS nameserver holds the records

getPrimaryNameServer

@Nullable
public String getPrimaryNameServer()

getResponsiblePerson

@Nullable
public String getResponsiblePerson()
The E-mail address of the person responsible for this domain (reformatted with '.' at end).


getTtl

public int getTtl()
TTL (time to live). The number of seconds a domain name is cached locally before expiration and return to authoritative nameServers for updates


getRefresh

public int getRefresh()
The number of seconds between update requests from secondary and slave name servers


getRetry

public int getRetry()
The number of seconds the secondary/slave will wait before retrying when the last attempt failed


getExpire

public int getExpire()
The number of seconds a master or slave will wait before considering the data stale if it cannot reach the primary name server


getMinimum

public int getMinimum()
The minimum/default TTL if the domain does not specify ttl

See Also:
getTtl()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


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