|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.ail.applicationblocks.connector.ApplicationParameters
This class is a container for the AIL parameters of the connector.
These parameters are needed for connection to the Genesys framework.
See Connector
.
Nested Class Summary | |
static class |
ApplicationParameters.ApplicationType
Constants for types of application. |
Constructor Summary | |
ApplicationParameters()
|
Method Summary | |
java.lang.String |
getApplicationName()
Gets the application name of the connection to the Configuration Layer. |
ApplicationParameters.ApplicationType |
getApplicationType()
Gets the application type of the connection to the Configuration Layer. |
java.lang.String |
getBackupHost()
Gets the backup host of the connection to the Configuration Layer. |
int |
getBackupPort()
Gets the backup port of the connection to the Configuration Layer. |
java.lang.String |
getDefaultPassword()
Gets the password of the connection to the Configuration Layer. |
java.lang.String |
getDefaultUsername()
Gets the username of the connection to the Configuration Layer. |
java.lang.String |
getPrimaryHost()
Gets the primary host of the connection to the Configuration Layer. |
int |
getPrimaryPort()
Gets the primary port of the connection to the Configuration Layer. |
int |
getReconnectionAttempts()
Gets the reconnection attemps for all back-end servers. |
int |
getReconnectionPeriod()
Gets the reconnection period for all back-end servers. |
int |
getTimeout()
Gets the timeout for all back-end servers. |
void |
init(java.lang.String primaryHost,
int primaryPort,
java.lang.String backupHost,
int backupPort,
java.lang.String defaultUsername,
java.lang.String defaultPassword,
java.lang.String applicationName,
ApplicationParameters.ApplicationType applicationType,
int reconnectionPeriod,
int reconnectionAttempts,
int timeout)
Sets the parameters for the connection to the Configuration Layer. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ApplicationParameters()
Method Detail |
public java.lang.String getPrimaryHost()
public int getPrimaryPort()
public java.lang.String getBackupHost()
public int getBackupPort()
public java.lang.String getDefaultUsername()
public java.lang.String getDefaultPassword()
public ApplicationParameters.ApplicationType getApplicationType()
public java.lang.String getApplicationName()
public int getReconnectionPeriod()
public int getReconnectionAttempts()
public int getTimeout()
public void init(java.lang.String primaryHost, int primaryPort, java.lang.String backupHost, int backupPort, java.lang.String defaultUsername, java.lang.String defaultPassword, java.lang.String applicationName, ApplicationParameters.ApplicationType applicationType, int reconnectionPeriod, int reconnectionAttempts, int timeout)
primaryHost
- primary host of the Configuration Layer.primaryPort
- primary port of the Configuration Layer.backupHost
- backup host of the Configuration Layer.backupPort
- backup port of the Configuration Layer.defaultUsername
- username for Configuration Layer.defaultPassword
- password for the Configuration Layer.applicationName
- application name to be connected.applicationType
- application type.reconnectionPeriod
- reconnection period (in seconds) for checking the connections to the servers. This ping allows keeping the
connections alive. The default value is 300 (five minutes); it should be greater than the timeout.reconnectionAttempts
- reconnection attempts (in seconds) for all back-end service connections.
In the event of a connection loss, the application will attempt to reconnect until this number is reached or until the library is stopped.timeout
- the timeout (in seconds) for the requests to the servers. When a request to a server doesn't get an answer by this delay,
it will throw a timeout exception. The default value is 30 (seconds); it should be lower than the period.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |