Class APIConfigurationImpl
- java.lang.Object
-
- org.identityconnectors.framework.impl.api.APIConfigurationImpl
-
- All Implemented Interfaces:
APIConfiguration
public class APIConfigurationImpl extends Object implements APIConfiguration
-
-
Constructor Summary
Constructors Constructor Description APIConfigurationImpl()
APIConfigurationImpl(APIConfigurationImpl other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationPropertiesImpl
getConfigurationProperties()
Gets instance of the configuration properties.AbstractConnectorInfo
getConnectorInfo()
ObjectPoolConfiguration
getConnectorPoolConfiguration()
Gets the connector pooling configuration.String
getInstanceName()
int
getProducerBufferSize()
Get the size of the buffer.ResultsHandlerConfiguration
getResultsHandlerConfiguration()
Get the configuration of the ResultsHandler chain of the Search operation.Set<Class<? extends APIOperation>>
getSupportedOperations()
Get the set of operations that thisConnectorFacade
will support.int
getTimeout(Class<? extends APIOperation> operation)
Gets the timeout in milliseconds based on the operation provided.Map<Class<? extends APIOperation>,Integer>
getTimeoutMap()
boolean
isConnectorPoolingSupported()
Determines if thisConnector
uses the framework's connector pooling.boolean
isSupportedOperation(Class<? extends APIOperation> api)
void
setConfigurationProperties(ConfigurationPropertiesImpl properties)
void
setConnectorInfo(AbstractConnectorInfo connectorInfo)
void
setConnectorPoolConfiguration(ObjectPoolConfiguration config)
void
setConnectorPoolingSupported(boolean supported)
void
setInstanceName(String instanceName)
Set name of the instance that this facade represents.void
setProducerBufferSize(int size)
void
setResultsHandlerConfiguration(ResultsHandlerConfiguration config)
void
setSupportedOperations(Set<Class<? extends APIOperation>> op)
void
setTimeout(Class<? extends APIOperation> operation, int timeout)
Sets the timeout value for the operation provided.void
setTimeoutMap(Map<Class<? extends APIOperation>,Integer> map)
-
-
-
Constructor Detail
-
APIConfigurationImpl
public APIConfigurationImpl()
-
APIConfigurationImpl
public APIConfigurationImpl(APIConfigurationImpl other)
-
-
Method Detail
-
getConnectorInfo
public AbstractConnectorInfo getConnectorInfo()
-
setConnectorInfo
public void setConnectorInfo(AbstractConnectorInfo connectorInfo)
-
setConnectorPoolingSupported
public void setConnectorPoolingSupported(boolean supported)
-
setConnectorPoolConfiguration
public void setConnectorPoolConfiguration(ObjectPoolConfiguration config)
-
setConfigurationProperties
public void setConfigurationProperties(ConfigurationPropertiesImpl properties)
-
getTimeoutMap
public Map<Class<? extends APIOperation>,Integer> getTimeoutMap()
-
setTimeoutMap
public void setTimeoutMap(Map<Class<? extends APIOperation>,Integer> map)
-
setSupportedOperations
public void setSupportedOperations(Set<Class<? extends APIOperation>> op)
-
isSupportedOperation
public boolean isSupportedOperation(Class<? extends APIOperation> api)
-
isConnectorPoolingSupported
public boolean isConnectorPoolingSupported()
Determines if thisConnector
uses the framework's connector pooling.- Specified by:
isConnectorPoolingSupported
in interfaceAPIConfiguration
- Returns:
- true if the
Connector
uses the framework's connector pooling feature.
-
getConnectorPoolConfiguration
public ObjectPoolConfiguration getConnectorPoolConfiguration()
Gets the connector pooling configuration. This is initialized to the default values. Caller can then modify the properties as needed.- Specified by:
getConnectorPoolConfiguration
in interfaceAPIConfiguration
-
getConfigurationProperties
public ConfigurationPropertiesImpl getConfigurationProperties()
Gets instance of the configuration properties. These are initialized to their default values based on meta information. Caller can then modify the properties as needed.- Specified by:
getConfigurationProperties
in interfaceAPIConfiguration
-
getTimeout
public int getTimeout(Class<? extends APIOperation> operation)
Gets the timeout in milliseconds based on the operation provided.- Specified by:
getTimeout
in interfaceAPIConfiguration
- Parameters:
operation
- particular operation to get a timeout for.- Returns:
- milliseconds to wait for an operation to complete before throwing an error.
-
getSupportedOperations
public Set<Class<? extends APIOperation>> getSupportedOperations()
Get the set of operations that thisConnectorFacade
will support.- Specified by:
getSupportedOperations
in interfaceAPIConfiguration
-
setTimeout
public void setTimeout(Class<? extends APIOperation> operation, int timeout)
Sets the timeout value for the operation provided.- Specified by:
setTimeout
in interfaceAPIConfiguration
- Parameters:
operation
- particular operation that requires a timeout.timeout
- milliseconds that the operation will wait in order to complete. Values less than or equal to zero are considered to disable the timeout property.
-
setProducerBufferSize
public void setProducerBufferSize(int size)
Sets the size of the buffer forConnector
the supportSearchOp
and what the results of the producer buffered.- Specified by:
setProducerBufferSize
in interfaceAPIConfiguration
- Parameters:
size
- default is 100, if size is set to zero or less will disable buffering.
-
getProducerBufferSize
public int getProducerBufferSize()
Get the size of the buffer.- Specified by:
getProducerBufferSize
in interfaceAPIConfiguration
-
getResultsHandlerConfiguration
public ResultsHandlerConfiguration getResultsHandlerConfiguration()
Get the configuration of the ResultsHandler chain of the Search operation.- Specified by:
getResultsHandlerConfiguration
in interfaceAPIConfiguration
-
setResultsHandlerConfiguration
public void setResultsHandlerConfiguration(ResultsHandlerConfiguration config)
-
setInstanceName
public void setInstanceName(String instanceName)
Set name of the instance that this facade represents. The name should represent the system that the connector connects to. This is also known as "resource" name, "connector instance" name, "target system" name, etc. The name will be used mostly for diagnostic purposes, e.g. it will may be included in log messages to distinguish individual instances of the same connector.- Specified by:
setInstanceName
in interfaceAPIConfiguration
- Parameters:
instanceName
- Name of the instance that this facade represents.
-
getInstanceName
public String getInstanceName()
-
-