|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.net.ConfigurableAddressProvider.AddressHolder
protected class ConfigurableAddressProvider.AddressHolder
A stateful holder for an obtaining an InetSocketAddress object.
Field Summary | |
---|---|
protected int |
m_nPort The configured port. |
protected java.lang.String |
m_sHost The configured address, either hostname or IP address. |
Constructor Summary | |
---|---|
protected |
ConfigurableAddressProvider.AddressHolder(java.lang.String sHost, int nPort) Construct an AddressHolder for the specified host and port. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o) Return true iff this AddressHolder is equal to the specified Object. |
java.net.InetSocketAddress |
getAddress() Obtain the underlying address. |
protected java.lang.String |
getHost() Return the host name. |
protected int |
getPort() Return the port number. |
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 |
---|
protected java.lang.String m_sHost
protected int m_nPort
Constructor Detail |
---|
protected ConfigurableAddressProvider.AddressHolder(java.lang.String sHost, int nPort)
sHost
- the hostnamenPort
- the port numberMethod Detail |
---|
public java.net.InetSocketAddress getAddress()
protected boolean isPending()
protected void setPending(boolean fPending)
fPending
- the flag valueprotected boolean isReported()
protected void setReported(boolean fReported)
fReported
- the flag valueprotected java.lang.String getHost()
protected int getPort()
public boolean equals(java.lang.Object o)
o
- the object to compare to this AddressHolder for equalitypublic int hashCode()
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |