
Classes | |
| class | HostInfoState |
Public Member Functions | |
| boolean | advanceState (DNSTask task) |
| Collection< DNSRecord > | answers (boolean unique, int ttl) |
| void | associateWithTask (DNSTask task, DNSState state) |
| boolean | cancelState () |
| boolean | closeState () |
| boolean | conflictWithRecord (DNSRecord.Address record) |
| JmDNSImpl | getDns () |
| InetAddress | getInetAddress () |
| NetworkInterface | getInterface () |
| String | getName () |
| boolean | isAnnounced () |
| boolean | isAnnouncing () |
| boolean | isAssociatedWithTask (DNSTask task, DNSState state) |
| boolean | isCanceled () |
| boolean | isCanceling () |
| boolean | isClosed () |
| boolean | isClosing () |
| boolean | isProbing () |
| boolean | recoverState () |
| void | removeAssociationWithTask (DNSTask task) |
| boolean | revertState () |
| String | toString () |
| boolean | waitForAnnounced (long timeout) |
| boolean | waitForCanceled (long timeout) |
Static Public Member Functions | |
| static HostInfo | newHostInfo (InetAddress address, JmDNSImpl dns, String jmdnsName) |
Protected Attributes | |
| InetAddress | _address |
| NetworkInterface | _interfaze |
| String | _name |
Package Functions | |
| DNSRecord.Address | getDNSAddressRecord (DNSRecordType type, boolean unique, int ttl) |
| DNSRecord.Pointer | getDNSReverseAddressRecord (DNSRecordType type, boolean unique, int ttl) |
| Inet4Address | getInet4Address () |
| Inet6Address | getInet6Address () |
| synchronized String | incrementHostName () |
| boolean | shouldIgnorePacket (DatagramPacket packet) |
Private Member Functions | |
| DNSRecord.Address | getDNS4AddressRecord (boolean unique, int ttl) |
| DNSRecord.Pointer | getDNS4ReverseAddressRecord (boolean unique, int ttl) |
| DNSRecord.Address | getDNS6AddressRecord (boolean unique, int ttl) |
| DNSRecord.Pointer | getDNS6ReverseAddressRecord (boolean unique, int ttl) |
| HostInfo (final InetAddress address, final String name, final JmDNSImpl dns) | |
Static Private Member Functions | |
| static InetAddress | loopbackAddress () |
Private Attributes | |
| final HostInfoState | _state |
| int | hostNameCount |
Static Private Attributes | |
| static Logger | logger = Logger.getLogger(HostInfo.class.getName()) |
HostInfo information on the local host to be able to cope with change of addresses.
Definition at line 32 of file HostInfo.java.
| javax.jmdns.impl.HostInfo.HostInfo | ( | final InetAddress | address, |
| final String | name, | ||
| final JmDNSImpl | dns | ||
| ) | [inline, private] |
Definition at line 121 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.advanceState | ( | DNSTask | task | ) | [inline] |
Sets the state and notifies all objects that wait on the ServiceInfo.
| task | associated task |
true</code if the state was changed by this thread, false otherwise. DNSState::advance()Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 295 of file HostInfo.java.
| Collection<DNSRecord> javax.jmdns.impl.HostInfo.answers | ( | boolean | unique, |
| int | ttl | ||
| ) | [inline] |
Definition at line 270 of file HostInfo.java.
| void javax.jmdns.impl.HostInfo.associateWithTask | ( | DNSTask | task, |
| DNSState | state | ||
| ) | [inline] |
Sets the task associated with this Object.
| task | associated task |
| state | state of the task |
Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 319 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.cancelState | ( | ) | [inline] |
Sets the state and notifies all objects that wait on the ServiceInfo.
true</code if the state was changed by this thread, false otherwise.Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 335 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.closeState | ( | ) | [inline] |
Sets the state and notifies all objects that wait on the ServiceInfo.
true</code if the state was changed by this thread, false otherwise.Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 343 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.conflictWithRecord | ( | DNSRecord.Address | record | ) | [inline] |
Definition at line 161 of file HostInfo.java.
| JmDNSImpl javax.jmdns.impl.HostInfo.getDns | ( | ) | [inline] |
Returns the DNS associated with this object.
Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 287 of file HostInfo.java.
| DNSRecord.Address javax.jmdns.impl.HostInfo.getDNS4AddressRecord | ( | boolean | unique, |
| int | ttl | ||
| ) | [inline, private] |
Definition at line 210 of file HostInfo.java.
| DNSRecord.Pointer javax.jmdns.impl.HostInfo.getDNS4ReverseAddressRecord | ( | boolean | unique, |
| int | ttl | ||
| ) | [inline, private] |
Definition at line 236 of file HostInfo.java.
| DNSRecord.Address javax.jmdns.impl.HostInfo.getDNS6AddressRecord | ( | boolean | unique, |
| int | ttl | ||
| ) | [inline, private] |
Definition at line 217 of file HostInfo.java.
| DNSRecord.Pointer javax.jmdns.impl.HostInfo.getDNS6ReverseAddressRecord | ( | boolean | unique, |
| int | ttl | ||
| ) | [inline, private] |
Definition at line 248 of file HostInfo.java.
| DNSRecord.Address javax.jmdns.impl.HostInfo.getDNSAddressRecord | ( | DNSRecordType | type, |
| boolean | unique, | ||
| int | ttl | ||
| ) | [inline, package] |
Definition at line 198 of file HostInfo.java.
| DNSRecord.Pointer javax.jmdns.impl.HostInfo.getDNSReverseAddressRecord | ( | DNSRecordType | type, |
| boolean | unique, | ||
| int | ttl | ||
| ) | [inline, package] |
Definition at line 224 of file HostInfo.java.
| Inet4Address javax.jmdns.impl.HostInfo.getInet4Address | ( | ) | [inline, package] |
Definition at line 143 of file HostInfo.java.
| Inet6Address javax.jmdns.impl.HostInfo.getInet6Address | ( | ) | [inline, package] |
Definition at line 150 of file HostInfo.java.
| InetAddress javax.jmdns.impl.HostInfo.getInetAddress | ( | ) | [inline] |
Definition at line 139 of file HostInfo.java.
| NetworkInterface javax.jmdns.impl.HostInfo.getInterface | ( | ) | [inline] |
Definition at line 157 of file HostInfo.java.
| String javax.jmdns.impl.HostInfo.getName | ( | ) | [inline] |
Definition at line 135 of file HostInfo.java.
| synchronized String javax.jmdns.impl.HostInfo.incrementHostName | ( | ) | [inline, package] |
Definition at line 169 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.isAnnounced | ( | ) | [inline] |
Returns true, if this is an announced state.
true if announced state, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 375 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.isAnnouncing | ( | ) | [inline] |
Returns true, if this is an announcing state.
true if announcing state, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 367 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.isAssociatedWithTask | ( | DNSTask | task, |
| DNSState | state | ||
| ) | [inline] |
Checks if this object is associated with the task and in the same state.
| task | associated task |
| state | state of the task |
true is the task is associated with this object, false otherwise.Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 327 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.isCanceled | ( | ) | [inline] |
Returns true, if this is a canceled state.
true if canceled state, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 391 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.isCanceling | ( | ) | [inline] |
Returns true, if this is a canceling state.
true if canceling state, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 383 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.isClosed | ( | ) | [inline] |
Returns true, if this is a closed state.
true if closed state, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 407 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.isClosing | ( | ) | [inline] |
Returns true, if this is a closing state.
true if closing state, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 399 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.isProbing | ( | ) | [inline] |
Returns true, if this is a probing state.
true if probing state, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 359 of file HostInfo.java.
| static InetAddress javax.jmdns.impl.HostInfo.loopbackAddress | ( | ) | [inline, static, private] |
Definition at line 108 of file HostInfo.java.
| static HostInfo javax.jmdns.impl.HostInfo.newHostInfo | ( | InetAddress | address, |
| JmDNSImpl | dns, | ||
| String | jmdnsName | ||
| ) | [inline, static] |
Definition at line 66 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.recoverState | ( | ) | [inline] |
Sets the state and notifies all objects that wait on the ServiceInfo.
true</code if the state was changed by this thread, false otherwise.Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 351 of file HostInfo.java.
| void javax.jmdns.impl.HostInfo.removeAssociationWithTask | ( | DNSTask | task | ) | [inline] |
Remove the association of the task with this Object.
| task | associated task |
Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 303 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.revertState | ( | ) | [inline] |
Sets the state and notifies all objects that wait on the ServiceInfo.
true</code if the state was changed by this thread, false otherwise. DNSState::revert()Implements javax.jmdns.impl.DNSStatefulObject.
Definition at line 311 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.shouldIgnorePacket | ( | DatagramPacket | packet | ) | [inline, package] |
Definition at line 177 of file HostInfo.java.
| String javax.jmdns.impl.HostInfo.toString | ( | ) | [inline] |
Definition at line 256 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.waitForAnnounced | ( | long | timeout | ) | [inline] |
Waits for the object to be announced.
| timeout | the maximum time to wait in milliseconds. |
true if the object is announced, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 415 of file HostInfo.java.
| boolean javax.jmdns.impl.HostInfo.waitForCanceled | ( | long | timeout | ) | [inline] |
Waits for the object to be canceled.
| timeout | the maximum time to wait in milliseconds. |
true if the object is canceled, false otherwiseImplements javax.jmdns.impl.DNSStatefulObject.
Definition at line 423 of file HostInfo.java.
InetAddress javax.jmdns.impl.HostInfo._address [protected] |
Definition at line 37 of file HostInfo.java.
NetworkInterface javax.jmdns.impl.HostInfo._interfaze [protected] |
Definition at line 39 of file HostInfo.java.
String javax.jmdns.impl.HostInfo._name [protected] |
Definition at line 35 of file HostInfo.java.
final HostInfoState javax.jmdns.impl.HostInfo._state [private] |
Definition at line 41 of file HostInfo.java.
int javax.jmdns.impl.HostInfo.hostNameCount [private] |
This is used to create a unique name for the host name.
Definition at line 119 of file HostInfo.java.
Logger javax.jmdns.impl.HostInfo.logger = Logger.getLogger(HostInfo.class.getName()) [static, private] |
Definition at line 33 of file HostInfo.java.