Package de.elo.ix.client.webapp
Interface AppConnManager
- All Known Implementing Classes:
AppConnManagerImpl
public interface AppConnManager
This interface helps to create Indexserver connections.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
This interface defines a callback function that is called from the AppConnManager, if the function initUniqueConnection has established a connection. -
Method Summary
Modifier and TypeMethodDescriptioncreateConnection
(String runAs) Creates a connection to the Indexserver.createConnection
(String computerName, String runAs) Creates a connection to the Indexserver.Creates a connection to the Indexserver.Back pointer to the Application object that contains this ConnManager.Returns an IXConnFactory object initialized with the Indexserver URL found in the configuration properties.getConnFactory
(String ixUrl) Returns an IXConnFactory object initialized with the supplied connection parameters.Get the list of events.Gets the unique internally stored Indexserver connection.void
Initialize the unique internally stored Indexserver connection.void
shutdown()
-
Method Details
-
getApplication
Application getApplication()Back pointer to the Application object that contains this ConnManager.- Returns:
- Object
-
getConnFactory
Returns an IXConnFactory object initialized with the supplied connection parameters.- Parameters:
ixUrl
- Indexserver URL- Returns:
- IXConnFactory object.
- Throws:
byps.RemoteException
- See Also:
-
getConnFactory
Returns an IXConnFactory object initialized with the Indexserver URL found in the configuration properties. The function assumes, that the Indexserver URL can be found under the key getApplication().getAppPropertyNames().getIxUrl().- Returns:
- IXConnFactory object
- Throws:
byps.RemoteException
- See Also:
-
createConnection
IXConnection createConnection(String ixUrl, String userName, String userPwd, String computerName, String runAs) throws byps.RemoteException Creates a connection to the Indexserver.- Parameters:
ixUrl
- Indexserver URLuserName
- User nameuserPwd
- User passwordcomputerName
- Computer name (internally prefixed by the program name)runAs
- Run-As user- Returns:
- IXConnection
- Throws:
byps.RemoteException
-
createConnection
Creates a connection to the Indexserver. The Indexserver URL, the user name and password are taken from the configuration properties.- Parameters:
computerName
- Computer name (internally prefixed by the program name)runAs
- Run-As user- Returns:
- IXConnection
- Throws:
byps.RemoteException
- See Also:
-
createConnection
Creates a connection to the Indexserver. The Indexserver URL, the user name and password are taken from the configuration properties. The computer name is queried by java runtime functions.- Parameters:
runAs
- Run-As user- Returns:
- IXConnection
- Throws:
byps.RemoteException
-
getUniqueConnection
Gets the unique internally stored Indexserver connection. Call this function, if the application does only need one connection to the Indexserver. (The IXConnection class is thread-save). This method should not be invoked in a Servlet.init method.- Returns:
- IXConnection object
- Throws:
byps.RemoteException
- thrown on timeoutInterruptedException
- See Also:
-
initUniqueConnection
void initUniqueConnection()Initialize the unique internally stored Indexserver connection. Call this function, if the application does only need one connection to the Indexserver. (The IXConnection class is thread-save). The Indexserver URL, the user name and password are taken from the configuration properties. This method should be invoked in a Servlet.init method. It initializes the connection in a background thread and returns immediately. -
getEvents
Get the list of events. In order to listen for events, add an object that implements the event interfaces.- Returns:
- List
-
shutdown
void shutdown()
-