Package com.tangosol.net
Class ConfigurableAddressProvider.AddressHolder
java.lang.Object
com.tangosol.net.ConfigurableAddressProvider.AddressHolder
- Enclosing class:
 ConfigurableAddressProvider
A stateful holder for an obtaining an InetSocketAddress object.
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionAddressHolder(String sHost, int nPort) Construct an AddressHolder for the specified host and port. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true iff this ProvidedAddress is equal to the specified Object.protected StringgetHost()Return the host name.protected intgetPort()Return the port number.inthashCode()Return the hash code for this ProvidedAddress.protected booleanCheck whether or not the underlying address has been accepted.protected booleanCheck whether or not the underlying address has been reported as unresolvable.protected voidsetPending(boolean fPending) Set or clear the "pending" flag.protected voidsetReported(boolean fReported) Set of clear the "reported" flag.validate()Throw IllegalArgumentException if any values are invalid. 
- 
Field Details
- 
m_sHost
The configured address, either hostname or IP address. - 
m_nPort
protected int m_nPortThe configured port. 
 - 
 - 
Constructor Details
- 
AddressHolder
Construct an AddressHolder for the specified host and port.- Parameters:
 sHost- the hostnamenPort- the port number
 
 - 
 - 
Method Details
- 
validate
Throw IllegalArgumentException if any values are invalid.- Returns:
 - this
 
 - 
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 unresolvable.- Returns:
 - true iff the underlying address has been reported as unresolvable
 
 - 
setReported
protected void setReported(boolean fReported) Set of clear the "reported" flag.- Parameters:
 fReported- the flag value
 - 
getHost
Return the host name.- Returns:
 - the host name
 
 - 
getPort
protected int getPort()Return the port number.- Returns:
 - the port number
 
 - 
equals
Return true iff this ProvidedAddress is equal to the specified Object. AddressHolders are considered equal if they represent the same address. - 
hashCode
public int hashCode()Return the hash code for this ProvidedAddress. 
 -