Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.net
Class ConfigurableAddressProvider.AddressHolder

java.lang.Object
  extended by com.tangosol.net.ConfigurableAddressProvider.AddressHolder

Enclosing class:
ConfigurableAddressProvider

protected class ConfigurableAddressProvider.AddressHolder
extends Object

A stateful holder for an obtaining an InetSocketAddress object.


Field Summary
protected  int m_nPort
          The configured port.
protected  String m_sHost
          The configured address, either hostname or IP address.

 

Constructor Summary
protected ConfigurableAddressProvider.AddressHolder(String sHost, int nPort)
          Construct an AddressHolder for the specified host and port.

 

Method Summary
 boolean equals(Object o)
          Return true iff this AddressHolder is equal to the specified Object.
 InetSocketAddress getAddress()
          Obtain the underlying address.
 int hashCode()
          Return the hash code for this AddressHolder.
protected  boolean isPending()
          Check whether or not the underlying address has been accepted.
protected  boolean isReported()
          Check whether or not the underlying address has been reported as unresolveable.
protected  void setPending(boolean fPending)
          Set or clear the "pending" flag.
protected  void setReported(boolean fReported)
          Set of clear the "reported" flag.

 

Field Detail

m_sHost

protected String m_sHost
The configured address, either hostname or IP address.

m_nPort

protected int m_nPort
The configured port.

Constructor Detail

ConfigurableAddressProvider.AddressHolder

protected ConfigurableAddressProvider.AddressHolder(String sHost,
                                                    int nPort)
Construct an AddressHolder for the specified host and port.
Parameters:
sHost - the hostname
nPort - the port number

Method Detail

getAddress

public InetSocketAddress getAddress()
Obtain the underlying address.
Returns:
the underlying InetSocketAddress object

isPending

protected boolean isPending()
Check whether or not the underlying address has been accepted.
Returns:
true iff the underlying address has not yet been accepted

setPending

protected void setPending(boolean fPending)
Set or clear the "pending" flag.
Parameters:
fPending - the flag value

isReported

protected boolean isReported()
Check whether or not the underlying address has been reported as unresolveable.
Returns:
true iff the underlying address has been reported as unresolveable

setReported

protected void setReported(boolean fReported)
Set of clear the "reported" flag.
Parameters:
fReported - the flag value

equals

public boolean equals(Object o)
Return true iff this AddressHolder is equal to the specified Object. AddressHolders are considered equal if they represent the same address.
Parameters:
o - the object to compare to this AddressHolder for equality
Returns:
true iff this AddressHolders is equal to the specified object

hashCode

public int hashCode()
Return the hash code for this AddressHolder.
Returns:
the hash code for this AddressHolder

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.