protected class TCPRemoteCommitProvider.HostAddress extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
TCPRemoteCommitProvider.HostAddress.SocketPoolableObjectFactory
Factory for pooled sockets.
|
Modifier and Type | Field and Description |
---|---|
protected InetAddress |
_address |
protected int |
_infosIssued |
protected boolean |
_isAvailable |
protected int |
_port |
protected org.apache.commons.pool2.impl.GenericObjectPool<Socket> |
_socketPool |
protected long |
_timeLastError |
Constructor and Description |
---|
HostAddress(String host)
Construct a new host address from a string of the form "host:port" or of the form "host".
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearAllSockets() |
void |
close() |
protected void |
closeSocket(Socket s) |
boolean |
equals(Object obj) |
InetAddress |
getAddress() |
int |
getPort() |
protected Socket |
getSocket() |
int |
hashCode() |
protected void |
returnSocket(Socket s) |
protected void |
sendUpdatePacket(byte[] bytes) |
protected void |
setMaxIdle(int maxIdle) |
protected void |
setMaxTotal(int maxTotal) |
protected InetAddress _address
protected int _port
protected long _timeLastError
protected boolean _isAvailable
protected int _infosIssued
protected final org.apache.commons.pool2.impl.GenericObjectPool<Socket> _socketPool
public HostAddress(String host) throws UnknownHostException
host
- host nameUnknownHostException
protected void setMaxTotal(int maxTotal)
protected void setMaxIdle(int maxIdle)
public InetAddress getAddress()
public int getPort()
public void close()
protected void sendUpdatePacket(byte[] bytes)
protected void clearAllSockets()
protected void closeSocket(Socket s)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.