|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.SIRAPRISE.client.DBConnection
be.SIRAPRISE.client.ReusableDBConnection
public final class ReusableDBConnection
A ReusableDBConnection has all the semantics of a DBConnection. It differs from a OneShotDBConnection in that the close() method does not actually close the connection. Instead, after invocation of the close() method on a reusable connection, the connection object will be freed for subsequent reuse.
| Constructor Summary | |
|---|---|
ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port with the given autoCommit setting, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
Signer signer)
Creates a connection to the server on the specified host and port with the given autoCommit setting, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
Signer privateKeyProvider)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
long requestConnectionIdleTime,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port with the given autoCommit setting, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
Signer signer)
Creates a connection to the server on the specified host and port with the given autoCommit setting, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
long requestConnectionIdleTime,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.signatureAlgorithmNames - a specified set of usable signature algorithm namesclientID - The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions - true if the transactions created on this connection should have their autocommit set to truerequestConnectionIdleTime - The requested time in milliseconds that the connection is allowed to stay idleencryptionAlgorithmNames - A specified set of usable encryption protocol namessigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.signatureAlgorithmNames - a specified set of usable signature algorithm namesclientID - The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions - true if the transactions created on this connection should have their autocommit set to truerequestConnectionIdleTime - The requested time in milliseconds that the connection is allowed to stay idlesigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.signatureAlgorithmNames - a specified set of usable signature algorithm namesclientID - The userID identifying the user of this connection to sira_priseinitialAutoCommitForTransactions - true if the transactions created on this connection should have their autocommit set to trueencryptionAlgorithmNames - a specified set of usable encryption protocol namessigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
Signer privateKeyProvider)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.signatureAlgorithmNames - a specified set of usable signature algorithm namesclientID - The userID identifying the user of this connection to sira_priseinitialAutoCommitForTransactions - true if the transactions created on this connection should have their autocommit set to trueprivateKeyProvider - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.signatureAlgorithmNames - a specified set of usable signature algorithm namesclientID - The userID identifying the user of this connection to sira_priserequestConnectionIdleTime - The requested time in milliseconds that the connection is allowed to stay idleencryptionAlgorithmNames - a specified set of usable encryption protocol namessigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
long requestConnectionIdleTime,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.signatureAlgorithmNames - a specified set of usable signature algorithm namesclientID - The userID identifying the user of this connection to sira_priserequestConnectionIdleTime - The requested time in milliseconds that the connection is allowed to stay idlesigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.signatureAlgorithmNames - a specified set of usable signature algorithm namesclientID - The userID identifying the user of this connection to sira_priseencryptionAlgorithmNames - a specified set of usable encryption protocol namessigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.signatureAlgorithmNames - a specified set of usable signature algorithm namesclientID - The userID identifying the user of this connection to sira_prisesigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.clientID - The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions - true if the transactions created on this connection should have their autocommit set to truerequestConnectionIdleTime - The requested time in milliseconds that the connection is allowed to stay idleencryptionAlgorithmNames - A specified set of usable encryption protocol namessigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.clientID - The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions - true if the transactions created on this connection should have their autocommit set to truerequestConnectionIdleTime - The requested time in milliseconds that the connection is allowed to stay idlesigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.clientID - The userID identifying the user of this connection to sira_priseinitialAutoCommitForTransactions - true if the transactions created on this connection should have their autocommit set to trueencryptionAlgorithmNames - a specified set of usable encryption protocol namessigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.clientID - The userID identifying the user of this connection to sira_priseinitialAutoCommitForTransactions - true if the transactions created on this connection should have their autocommit set to truesigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.clientID - The userID identifying the user of this connection to sira_priserequestConnectionIdleTime - The requested time in milliseconds that the connection is allowed to stay idleencryptionAlgorithmNames - a specified set of usable encryption protocol namessigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
long requestConnectionIdleTime,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.clientID - The userID identifying the user of this connection to sira_priserequestConnectionIdleTime - The requested time in milliseconds that the connection is allowed to stay idlesigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.clientID - The userID identifying the user of this connection to sira_priseencryptionAlgorithmNames - a specified set of usable encryption protocol namessigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake
public ReusableDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
Signer signer)
throws java.io.IOException,
CommunicationProtocolException,
DBException
host - The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port - The port to which to connect.clientID - The userID identifying the user of this connection to sira_prisesigner - The Signer object that will be called upon to compute the needed signature
java.io.IOException - if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException - If an unexpected message was received during the handshake
DBException - If an error was detected on the server during the handshake| Method Detail |
|---|
public void close()
DBConnection
close in class DBConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||