|
JmDNS 3.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DNSState> javax.jmdns.impl.constants.DNSState
public enum DNSState
DNSState defines the possible states for services registered with JmDNS.
Enum Constant Summary | |
---|---|
ANNOUNCED
|
|
ANNOUNCING_1
|
|
ANNOUNCING_2
|
|
CANCELED
|
|
CANCELING_1
|
|
CANCELING_2
|
|
CANCELING_3
|
|
CLOSED
|
|
CLOSING
|
|
PROBING_1
|
|
PROBING_2
|
|
PROBING_3
|
Method Summary | |
---|---|
DNSState |
advance()
Returns the next advanced state. In general, this advances one step in the following sequence: PROBING_1, PROBING_2, PROBING_3, ANNOUNCING_1, ANNOUNCING_2, ANNOUNCED. or CANCELING_1, CANCELING_2, CANCELING_3, CANCELED Does not advance for ANNOUNCED and CANCELED state. |
boolean |
isAnnounced()
Returns true, if this is an announced state. |
boolean |
isAnnouncing()
Returns true, if this is an announcing state. |
boolean |
isCanceled()
Returns true, if this is a canceled state. |
boolean |
isCanceling()
Returns true, if this is a canceling state. |
boolean |
isClosed()
Returns true, if this is a closing state. |
boolean |
isClosing()
Returns true, if this is a closing state. |
boolean |
isProbing()
Returns true, if this is a probing state. |
DNSState |
revert()
Returns to the next reverted state. |
String |
toString()
|
static DNSState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DNSState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DNSState PROBING_1
public static final DNSState PROBING_2
public static final DNSState PROBING_3
public static final DNSState ANNOUNCING_1
public static final DNSState ANNOUNCING_2
public static final DNSState ANNOUNCED
public static final DNSState CANCELING_1
public static final DNSState CANCELING_2
public static final DNSState CANCELING_3
public static final DNSState CANCELED
public static final DNSState CLOSING
public static final DNSState CLOSED
Method Detail |
---|
public static DNSState[] values()
for (DNSState c : DNSState.values()) System.out.println(c);
public static DNSState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic final String toString()
toString
in class Enum<DNSState>
public final DNSState advance()
public final DNSState revert()
public final boolean isProbing()
true
if probing state, false
otherwisepublic final boolean isAnnouncing()
true
if announcing state, false
otherwisepublic final boolean isAnnounced()
true
if announced state, false
otherwisepublic final boolean isCanceling()
true
if canceling state, false
otherwisepublic final boolean isCanceled()
true
if canceled state, false
otherwisepublic final boolean isClosing()
true
if closing state, false
otherwisepublic final boolean isClosed()
true
if closed state, false
otherwise
|
Last updated 2011-08-25 12:40 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |