public class AEConnectionPool
extends java.lang.Object
Constructor and Description |
---|
AEConnectionPool(int maxLifetime)
Creates a new
ConnectionMananger instance with a maximum lifetime of connections. |
Modifier and Type | Method and Description |
---|---|
void |
sendRequestAndWait(ConnectProperties connectInfo,
XMLRequest req)
Sends a request to the Automation Engine.
|
void |
sendRequestAndWait(ConnectProperties connectInfo,
XMLRequest req,
java.util.Properties options)
Sends a request to the Automation Engine.
|
void |
shutdown()
Closes all open connections.
|
int |
size() |
public AEConnectionPool(int maxLifetime)
ConnectionMananger
instance with a maximum lifetime of connections.maxLifetime
- Number of seconds after which connections are closed.public void shutdown()
public int size()
public void sendRequestAndWait(ConnectProperties connectInfo, XMLRequest req) throws java.io.IOException
connectInfo
- Connect informationreq
- Requestjava.io.IOException
- If there are I/O errors or the login failspublic void sendRequestAndWait(ConnectProperties connectInfo, XMLRequest req, java.util.Properties options) throws java.io.IOException
connectInfo
- Connect informationreq
- Requestoptions
- This properties are only used when a new Connection is created.
These are the same properties as in the method Connection.open(String servername, int port, Properties options)
Supported parameters:
Key | Description |
---|---|
DIRECT | If set to the String "YES" the load balancing will be disabled |
AGENTNAME | Name of the Agent if the connection is created within an UC4 Agent process |
HOSTNAME | Name of the user's host. This value will be shown in the system overview |
REMOTE_ID | Remote ID. This value will be shown in the system overview |
SECRET_TYPE | Optional: Type of the secret in the login method. Values: "ET" (Exit-Token), "TK" (AE-Token) and "PW" (Password) |
java.io.IOException
- If there are I/O errors or the login fails