Class TstStatefulPoolableConnector
- java.lang.Object
-
- org.identityconnectors.testconnector.TstAbstractConnector
-
- org.identityconnectors.testconnector.TstStatefulPoolableConnector
-
- All Implemented Interfaces:
Connector
,CreateOp
,DeleteOp
,SearchOp<Filter>
,SPIOperation
,SyncOp
,PoolableConnector
public class TstStatefulPoolableConnector extends TstAbstractConnector implements PoolableConnector
-
-
Field Summary
-
Fields inherited from class org.identityconnectors.testconnector.TstAbstractConnector
config
-
-
Constructor Summary
Constructors Constructor Description TstStatefulPoolableConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAlive()
Checks if the connector is still alive.void
dispose()
Dispose of any resources theConnector
uses.Configuration
getConfiguration()
Return the configuration that was passed toConnector.init(Configuration)
.void
init(Configuration cfg)
Initialize the connector with its configuration.-
Methods inherited from class org.identityconnectors.testconnector.TstAbstractConnector
create, createFilterTranslator, delete, executeQuery, getLatestSyncToken, sync
-
-
-
-
Method Detail
-
init
public void init(Configuration cfg)
Description copied from interface:Connector
Initialize the connector with its configuration. For instance in a JDBCConnector
this would include the database URL, password, and user.- Specified by:
init
in interfaceConnector
- Overrides:
init
in classTstAbstractConnector
- Parameters:
cfg
- instance of theConfiguration
object implemented by theConnector
developer and populated with information in order to initialize theConnector
.
-
getConfiguration
public Configuration getConfiguration()
Description copied from interface:Connector
Return the configuration that was passed toConnector.init(Configuration)
.- Specified by:
getConfiguration
in interfaceConnector
- Returns:
- The configuration that was passed to
Connector.init(Configuration)
.
-
dispose
public void dispose()
Description copied from interface:Connector
Dispose of any resources theConnector
uses.
-
checkAlive
public void checkAlive()
Description copied from interface:PoolableConnector
Checks if the connector is still alive.A connector can spend a large amount of time in the pool before being used. This method is intended to check if the connector is alive and operations can be invoked on it (for instance, an implementation would check that the connector's physical connection to the resource has not timed out).
The major difference between this method and
TestOp.test()
is that this method must do only the minimum that is necessary to check that the connector is still alive.TestOp.test()
does a more thorough check of the environment specified in the Configuration, and can therefore be much slower.This method can be called often. Implementations should do their best to keep this method fast.
- Specified by:
checkAlive
in interfacePoolableConnector
-
-