public final class DBMonitorConnection
extends java.lang.Object
Constructor and Description |
---|
DBMonitorConnection(java.net.InetAddress netAddress,
int monitorPort)
Creates a monitor connection to the specified host and port for an anonymous client.
|
DBMonitorConnection(java.net.InetAddress netAddress,
int monitorPort,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
Signer signer)
Creates a monitor connection to the specified host.
|
DBMonitorConnection(java.lang.String host,
int monitorPort)
Creates a monitor connection to the specified host and port for an anonymous client.
|
DBMonitorConnection(java.lang.String host,
int monitorPort,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
Signer signer)
Creates the monitor connection to the specified host and port.
|
Modifier and Type | Method and Description |
---|---|
void |
end()
Simply closes the connection.
|
Relation |
execCommand(ServerMonitorCommand commandObject,
java.lang.String userID,
Signer userIDSigner,
boolean userIDAuthenticatedByClient)
Sends a monitor command to the server and returns the result obtained.
|
Relation |
execCommand(java.lang.String command,
java.lang.String userID,
Signer userIDSigner,
boolean userIDAuthenticatedByClient)
Sends a monitor command to the server and returns the result obtained.
|
public DBMonitorConnection(java.net.InetAddress netAddress, int monitorPort) throws CommunicationProtocolException, java.io.IOException, DBException
netAddress
- The IP address where the host is listeningmonitorPort
- The port number of the host's monitorjava.io.IOException
- if an I/O error occurredDBException
- if a database exception occurredCommunicationProtocolException
- if the communication protocol was not obeyedpublic DBMonitorConnection(java.net.InetAddress netAddress, int monitorPort, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, Signer signer) throws CommunicationProtocolException, java.io.IOException, DBException
netAddress
- The IP address where the host is listeningmonitorPort
- The port number of the host's monitorsignatureAlgorithmNames
- The set of Signature algorithm names that can be used to authenticate the clientclientID
- The client ID of the client establishing the monitor connectionsigner
- The object that will be called upon to compute the authentication signaturejava.io.IOException
- if an I/O error occurredDBException
- if a database exception occurredCommunicationProtocolException
- if the communication protocol was not obeyedpublic DBMonitorConnection(java.lang.String host, int monitorPort) 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.monitorPort
- The port to which to connect.java.io.IOException
- if an I/O error occurredCommunicationProtocolException
- if the communication protocol was not obeyedDBException
- if a database exception occurredpublic DBMonitorConnection(java.lang.String host, int monitorPort, 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.monitorPort
- The port to which to connect.signatureAlgorithmNames
- The set of Signature algorithm names that can be used to authenticate the clientclientID
- The client ID of the client establishing the monitor connectionsigner
- The object that will be called upon to compute the authentication signaturejava.io.IOException
- if an I/O error occurredCommunicationProtocolException
- if the communication protocol was not obeyedDBException
- if a database exception occurredpublic void end() throws DBException
DBException
- If the SIRA_PRISE monitor reports an error it encounteredpublic Relation execCommand(ServerMonitorCommand commandObject, java.lang.String userID, Signer userIDSigner, boolean userIDAuthenticatedByClient) throws DBException
commandObject
- The monitor command object denoting the command to be executeduserID
- The Identification of the user issuing the requestuserIDSigner
- The Object that can be called upon to provide the private key needed to sign/authenticate user identityuserIDAuthenticatedByClient
- true if the identity of the user has been authenticated by the clientDBException
- if a database exception occurredpublic Relation execCommand(java.lang.String command, java.lang.String userID, Signer userIDSigner, boolean userIDAuthenticatedByClient) throws DBException
command
- The monitor command to be executeduserID
- The Identification of the user issuing the requestuserIDSigner
- The Object that can be called upon to provide the private key needed to sign/authenticate user identityuserIDAuthenticatedByClient
- true if the identity of the user has been authenticated by the clientDBException
- If the SIRA_PRISE monitor reports an error it encountered