public class DBPort extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PORT
the default port
|
| Constructor and Description |
|---|
DBPort(ServerAddress addr)
creates a new DBPort
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
closes the underlying connection and streams
|
void |
ensureOpen()
makes sure that a connection to the server has been opened
|
protected void |
finalize() |
DBPortPool |
getPool()
Gets the pool that this port belongs to.
|
int |
hashCode() |
String |
host()
returns a String representation of the target host
|
ServerAddress |
serverAddress() |
String |
toString() |
public static final int PORT
public DBPort(ServerAddress addr)
addr - the server addresspublic void ensureOpen()
throws IOException
IOExceptionpublic String host()
public ServerAddress serverAddress()
protected void finalize()
throws Throwable
protected void close()
public DBPortPool getPool()