public class DBPort
extends java.lang.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() |
java.lang.String |
host()
returns a String representation of the target host
|
ServerAddress |
serverAddress() |
java.lang.String |
toString() |
public static final int PORT
public DBPort(ServerAddress addr)
addr - the server addresspublic void ensureOpen()
throws java.io.IOException
java.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String host()
public ServerAddress serverAddress()
public java.lang.String toString()
toString in class java.lang.Objectprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected void close()
public DBPortPool getPool()