Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Package Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
javax.jmdns.impl.HostInfo Class Reference
Inheritance diagram for javax.jmdns.impl.HostInfo:
Inheritance graph
[legend]

List of all members.

Classes

class  HostInfoState

Public Member Functions

boolean advanceState (DNSTask task)
Collection< DNSRecordanswers (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())

Detailed Description

HostInfo information on the local host to be able to cope with change of addresses.

Author:
Pierre Frisch, Werner Randelshofer

Definition at line 32 of file HostInfo.java.


Constructor & Destructor Documentation

javax.jmdns.impl.HostInfo.HostInfo ( final InetAddress  address,
final String  name,
final JmDNSImpl  dns 
) [inline, private]

Definition at line 121 of file HostInfo.java.


Member Function Documentation

boolean javax.jmdns.impl.HostInfo.advanceState ( DNSTask  task) [inline]

Sets the state and notifies all objects that wait on the ServiceInfo.

Parameters:
taskassociated task
Returns:
true</code if the state was changed by this thread, false otherwise.
See also:
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.

Parameters:
taskassociated task
statestate of the task

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 319 of file HostInfo.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
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.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
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.

Returns the DNS associated with this object.

Returns:
DNS resolver

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.

Returns true, if this is an announced state.

Returns:
true if announced state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 375 of file HostInfo.java.

Returns true, if this is an announcing state.

Returns:
true if announcing state, false otherwise

Implements 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.

Parameters:
taskassociated task
statestate of the task
Returns:
true is the task is associated with this object, false otherwise.

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 327 of file HostInfo.java.

Returns true, if this is a canceled state.

Returns:
true if canceled state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 391 of file HostInfo.java.

Returns true, if this is a canceling state.

Returns:
true if canceling state, false otherwise

Implements 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.

Returns:
true if closed state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 407 of file HostInfo.java.

Returns true, if this is a closing state.

Returns:
true if closing state, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 399 of file HostInfo.java.

Returns true, if this is a probing state.

Returns:
true if probing state, false otherwise

Implements 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]
Parameters:
addressIP address to bind
dnsJmDNS instance
jmdnsNameJmDNS name
Returns:
new HostInfo

Definition at line 66 of file HostInfo.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
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.

Remove the association of the task with this Object.

Parameters:
taskassociated task

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 303 of file HostInfo.java.

Sets the state and notifies all objects that wait on the ServiceInfo.

Returns:
true</code if the state was changed by this thread, false otherwise.
See also:
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.

Definition at line 256 of file HostInfo.java.

boolean javax.jmdns.impl.HostInfo.waitForAnnounced ( long  timeout) [inline]

Waits for the object to be announced.

Parameters:
timeoutthe maximum time to wait in milliseconds.
Returns:
true if the object is announced, false otherwise

Implements 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.

Parameters:
timeoutthe maximum time to wait in milliseconds.
Returns:
true if the object is canceled, false otherwise

Implements javax.jmdns.impl.DNSStatefulObject.

Definition at line 423 of file HostInfo.java.


Member Data Documentation

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.

Definition at line 41 of file HostInfo.java.

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.


The documentation for this class was generated from the following file:


zeroconf_jmdns_suite
Author(s): Daniel Stonier
autogenerated on Thu Aug 27 2015 15:50:27