|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.client.MonitorConnection
public final class MonitorConnection
Class used to communicate between a program and the SIRA_PRISE monitor.
Constructor Summary | |
---|---|
MonitorConnection(java.net.InetAddress netAddress,
int monitorPort)
|
|
MonitorConnection(java.net.InetAddress netAddress,
int monitorPort,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
Signer signer)
|
|
MonitorConnection(java.lang.String host,
int monitorPort)
Creates a monitor connection to the specified host and port for an anonymous client. |
|
MonitorConnection(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. |
Method Summary | |
---|---|
void |
end()
Simply closes the connection. |
AbstractRelation |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonitorConnection(java.net.InetAddress netAddress, int monitorPort) throws CommunicationProtocolException, java.io.IOException, DBException
netAddress
- monitorPort
-
java.io.IOException
DBException
CommunicationProtocolException
public MonitorConnection(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
- monitorPort
- signatureAlgorithmNames
- clientID
- signer
-
java.io.IOException
DBException
CommunicationProtocolException
public MonitorConnection(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
CommunicationProtocolException
DBException
public MonitorConnection(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 IDsigner
- The object that will be called upon to compute the authentication signature
java.io.IOException
CommunicationProtocolException
DBException
Method Detail |
---|
public void end() throws DBException
DBException
- If the sira_prise monitor reports an error it encounteredpublic AbstractRelation 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 client
DBException
- If the sira_prise monitor reports an error it encountered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |