|
|||||||||
| Home >> All >> com >> strangeberry >> [ rendezvous overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.strangeberry.rendezvous
Class DNSRecord.Address

java.lang.Objectcom.strangeberry.rendezvous.DNSConstants
com.strangeberry.rendezvous.DNSEntry
com.strangeberry.rendezvous.DNSRecord
com.strangeberry.rendezvous.DNSRecord.Address
- Enclosing class:
- DNSRecord
- static class DNSRecord.Address
- extends DNSRecord
Address record.
| Nested Class Summary | |
(package private) static class |
DNSRecord.Address
Address record. |
(package private) static class |
DNSRecord.Pointer
Pointer record. |
(package private) static class |
DNSRecord.Service
Service record. |
(package private) static class |
DNSRecord.Text
|
| Field Summary | |
(package private) int |
addr
|
(package private) static int |
CLASS_ANY
|
(package private) static int |
CLASS_CH
|
(package private) static int |
CLASS_CS
|
(package private) static int |
CLASS_HS
|
(package private) static int |
CLASS_IN
|
(package private) static int |
CLASS_MASK
|
(package private) static int |
CLASS_NONE
|
(package private) static int |
CLASS_UNIQUE
|
(package private) int |
clazz
|
(package private) long |
created
|
(package private) static int |
DNS_PORT
|
(package private) static int |
FLAGS_AA
|
(package private) static int |
FLAGS_AD
|
(package private) static int |
FLAGS_CD
|
(package private) static int |
FLAGS_QR_MASK
|
(package private) static int |
FLAGS_QR_QUERY
|
(package private) static int |
FLAGS_QR_RESPONSE
|
(package private) static int |
FLAGS_RA
|
(package private) static int |
FLAGS_RD
|
(package private) static int |
FLAGS_TC
|
(package private) static int |
FLAGS_Z
|
(package private) java.lang.String |
key
|
(package private) static int |
MAX_MSG_ABSOLUTE
|
(package private) static int |
MAX_MSG_TYPICAL
|
(package private) static java.lang.String |
MDNS_GROUP
|
(package private) static int |
MDNS_PORT
|
(package private) java.lang.String |
name
|
(package private) int |
ttl
|
(package private) int |
type
|
(package private) static int |
TYPE_A
|
(package private) static int |
TYPE_ANY
|
(package private) static int |
TYPE_CNAME
|
(package private) static int |
TYPE_HINFO
|
(package private) static int |
TYPE_MB
|
(package private) static int |
TYPE_MD
|
(package private) static int |
TYPE_MF
|
(package private) static int |
TYPE_MG
|
(package private) static int |
TYPE_MINFO
|
(package private) static int |
TYPE_MR
|
(package private) static int |
TYPE_MX
|
(package private) static int |
TYPE_NS
|
(package private) static int |
TYPE_NULL
|
(package private) static int |
TYPE_PTR
|
(package private) static int |
TYPE_SOA
|
(package private) static int |
TYPE_SRV
|
(package private) static int |
TYPE_TXT
|
(package private) static int |
TYPE_WKS
|
(package private) boolean |
unique
|
| Constructor Summary | |
(package private) |
DNSRecord.Address(java.lang.String name,
int type,
int clazz,
int ttl,
int addr)
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
True if this record is the same as some other record. |
(package private) java.net.InetAddress |
getAddress()
|
(package private) static java.lang.String |
getClazz(int clazz)
Get a string given a clazz. |
(package private) long |
getExpirationTime(int percent)
Get the expiration time of this record. |
java.lang.String |
getHostAddress()
|
(package private) int |
getRemainingTTL(long now)
Get the remaining TTL for this record. |
(package private) static java.lang.String |
getType(int type)
Get a string given a type. |
(package private) boolean |
isExpired(long now)
Check if the record is expired. |
(package private) boolean |
isStale(long now)
Check if the record is stale, ie it has outlived more than half of its TTL. |
(package private) void |
resetTTL(DNSRecord other)
Reset the TTL of a record. |
(package private) boolean |
sameAs(DNSRecord other)
True if this record is the same as some other record. |
(package private) boolean |
sameValue(DNSRecord other)
True if this record has the same value as some other record. |
(package private) boolean |
suppressedBy(DNSIncoming msg)
True if this record is suppressed by the answers in a message. |
(package private) boolean |
suppressedBy(DNSRecord other)
True if this record would be supressed by an answer. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
java.lang.String |
toString(java.lang.String other)
|
java.lang.String |
toString(java.lang.String hdr,
java.lang.String other)
|
(package private) void |
write(DNSOutgoing out)
Write this record into an outgoing message. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
addr
int addr
ttl
int ttl
created
long created
key
java.lang.String key
name
java.lang.String name
type
int type
clazz
int clazz
unique
boolean unique
MDNS_GROUP
static final java.lang.String MDNS_GROUP
- See Also:
- Constant Field Values
MDNS_PORT
static final int MDNS_PORT
- See Also:
- Constant Field Values
DNS_PORT
static final int DNS_PORT
- See Also:
- Constant Field Values
MAX_MSG_TYPICAL
static final int MAX_MSG_TYPICAL
- See Also:
- Constant Field Values
MAX_MSG_ABSOLUTE
static final int MAX_MSG_ABSOLUTE
- See Also:
- Constant Field Values
FLAGS_QR_MASK
static final int FLAGS_QR_MASK
- See Also:
- Constant Field Values
FLAGS_QR_QUERY
static final int FLAGS_QR_QUERY
- See Also:
- Constant Field Values
FLAGS_QR_RESPONSE
static final int FLAGS_QR_RESPONSE
- See Also:
- Constant Field Values
FLAGS_AA
static final int FLAGS_AA
- See Also:
- Constant Field Values
FLAGS_TC
static final int FLAGS_TC
- See Also:
- Constant Field Values
FLAGS_RD
static final int FLAGS_RD
- See Also:
- Constant Field Values
FLAGS_RA
static final int FLAGS_RA
- See Also:
- Constant Field Values
FLAGS_Z
static final int FLAGS_Z
- See Also:
- Constant Field Values
FLAGS_AD
static final int FLAGS_AD
- See Also:
- Constant Field Values
FLAGS_CD
static final int FLAGS_CD
- See Also:
- Constant Field Values
CLASS_IN
static final int CLASS_IN
- See Also:
- Constant Field Values
CLASS_CS
static final int CLASS_CS
- See Also:
- Constant Field Values
CLASS_CH
static final int CLASS_CH
- See Also:
- Constant Field Values
CLASS_HS
static final int CLASS_HS
- See Also:
- Constant Field Values
CLASS_NONE
static final int CLASS_NONE
- See Also:
- Constant Field Values
CLASS_ANY
static final int CLASS_ANY
- See Also:
- Constant Field Values
CLASS_MASK
static final int CLASS_MASK
- See Also:
- Constant Field Values
CLASS_UNIQUE
static final int CLASS_UNIQUE
- See Also:
- Constant Field Values
TYPE_A
static final int TYPE_A
- See Also:
- Constant Field Values
TYPE_NS
static final int TYPE_NS
- See Also:
- Constant Field Values
TYPE_MD
static final int TYPE_MD
- See Also:
- Constant Field Values
TYPE_MF
static final int TYPE_MF
- See Also:
- Constant Field Values
TYPE_CNAME
static final int TYPE_CNAME
- See Also:
- Constant Field Values
TYPE_SOA
static final int TYPE_SOA
- See Also:
- Constant Field Values
TYPE_MB
static final int TYPE_MB
- See Also:
- Constant Field Values
TYPE_MG
static final int TYPE_MG
- See Also:
- Constant Field Values
TYPE_MR
static final int TYPE_MR
- See Also:
- Constant Field Values
TYPE_NULL
static final int TYPE_NULL
- See Also:
- Constant Field Values
TYPE_WKS
static final int TYPE_WKS
- See Also:
- Constant Field Values
TYPE_PTR
static final int TYPE_PTR
- See Also:
- Constant Field Values
TYPE_HINFO
static final int TYPE_HINFO
- See Also:
- Constant Field Values
TYPE_MINFO
static final int TYPE_MINFO
- See Also:
- Constant Field Values
TYPE_MX
static final int TYPE_MX
- See Also:
- Constant Field Values
TYPE_TXT
static final int TYPE_TXT
- See Also:
- Constant Field Values
TYPE_SRV
static final int TYPE_SRV
- See Also:
- Constant Field Values
TYPE_ANY
static final int TYPE_ANY
- See Also:
- Constant Field Values
| Constructor Detail |
DNSRecord.Address
DNSRecord.Address(java.lang.String name, int type, int clazz, int ttl, int addr)
| Method Detail |
write
void write(DNSOutgoing out) throws java.io.IOException
- Description copied from class:
DNSRecord - Write this record into an outgoing message.
sameValue
boolean sameValue(DNSRecord other)
- Description copied from class:
DNSRecord - True if this record has the same value as some other record.
getAddress
java.net.InetAddress getAddress()
getHostAddress
public java.lang.String getHostAddress()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
equals
public boolean equals(java.lang.Object other)
sameAs
boolean sameAs(DNSRecord other)
- True if this record is the same as some other record.
suppressedBy
boolean suppressedBy(DNSIncoming msg)
- True if this record is suppressed by the answers in a message.
suppressedBy
boolean suppressedBy(DNSRecord other)
- True if this record would be supressed by an answer.
This is the case if this record would not have a
significantly longer TTL.
getExpirationTime
long getExpirationTime(int percent)
- Get the expiration time of this record.
getRemainingTTL
int getRemainingTTL(long now)
- Get the remaining TTL for this record.
isExpired
boolean isExpired(long now)
- Check if the record is expired.
isStale
boolean isStale(long now)
- Check if the record is stale, ie it has outlived
more than half of its TTL.
resetTTL
void resetTTL(DNSRecord other)
- Reset the TTL of a record. This avoids having to
update the entire record in the cache.
toString
public java.lang.String toString(java.lang.String other)
getClazz
static java.lang.String getClazz(int clazz)
- Get a string given a clazz.
getType
static java.lang.String getType(int type)
- Get a string given a type.
toString
public java.lang.String toString(java.lang.String hdr, java.lang.String other)
|
|||||||||
| Home >> All >> com >> strangeberry >> [ rendezvous overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC