|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.genesyslab.ail.applicationblocks.connector.Connector
This is the entry point and the manager of the underlying AIL library. This class is a bootstrap for AIL connection and management.
| Nested Class Summary | |
class |
Connector.ServiceStatusListenerAdapter
Implements ServiceListener. |
| Constructor Summary | |
Connector()
Creates a new instance of Connector |
|
| Method Summary | |
com.genesyslab.ail.AilFactory |
getAIL()
Instantiates and returns the AilFactory. |
void |
init(ApplicationParameters applicationParameters)
Initializes the connector with application parameters and connects to the AIL Library. |
void |
release()
Releases the AIL Library instance and all the objects made available through this connector. |
void |
setLicense(java.lang.String license)
Sets license file when given as application parameter rather than option of config. |
void |
setLog(java.lang.String file,
java.lang.String path)
Sets the default log file location and default log file name. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Connector()
| Method Detail |
public void init(ApplicationParameters applicationParameters)
throws com.genesyslab.ail.exception.RequestFailedException
applicationParameters - the application parameters See ApplicationParameters.
com.genesyslab.ail.exception.RequestFailedException - thrown if problems occured during initialisation.
public void release()
throws com.genesyslab.ail.exception.RequestFailedException
com.genesyslab.ail.exception.RequestFailedException - thrown if problems occured during release.
public void setLog(java.lang.String file,
java.lang.String path)
throws com.genesyslab.ail.exception.RequestFailedException
file - the name of the log file.path - the fully-qualified path to the log file ; it can be either absolute or relative.
com.genesyslab.ail.exception.RequestFailedException - thrown if problems occured during setting.
public void setLicense(java.lang.String license)
throws com.genesyslab.ail.exception.RequestFailedException
license - The license file (one or several filepath|port@host separated by semicolon).
com.genesyslab.ail.exception.RequestFailedException - if license was already set with a different value.
public com.genesyslab.ail.AilFactory getAIL()
throws com.genesyslab.ail.exception.RequestFailedException
AilFactory. If the
AIlFactory was not initialized, returns
null. In case of error while initializing the
connection to the config server, returns null.
AilFactory or null in case of error.
com.genesyslab.ail.exception.RequestFailedException - thrown if problems occured during setting.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||