public class ConnectorConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_DELTA_AGGREGATION
A Reseerved ConnectorConfig parameter name that is passed in to
indicate that delta aggregation is to be performed.
|
static java.lang.String |
CONFIG_DELTA_AGGREGATION_STATE
A Reseerved ConnectorConfig parameter name that is used to save
state related to delta aggregation.
|
| Constructor and Description |
|---|
ConnectorConfig()
Create an empty configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSchema(Schema schema)
Add one schema.
|
java.lang.Object |
getAttribute(java.lang.String name) |
boolean |
getBoolean(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.Object> |
getConfig() |
Schema |
getSchema(java.lang.String objectType)
Find a schema by object type.
|
java.util.List<Schema> |
getSchemas() |
java.lang.String |
getString(java.lang.String name) |
java.lang.String |
getTypedAttribute(java.lang.String attributeName,
java.lang.String objectType) |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object value)
Set an attribute value in the configuration.
|
void |
setConfig(java.util.Map<java.lang.String,java.lang.Object> config)
Set the map of configuration parameters.
|
void |
setSchemas(java.util.List<Schema> schemas)
Set the list of schemas supported by this connector.
|
public static final java.lang.String CONFIG_DELTA_AGGREGATION
On the IIQ side, this is passed in the options Map to the iterate() method, here since we merge the Application config attributes and the options into a single ConnectorConfig we have to be careful about name collisions. On the IIQ side this name is also used for delta agg state.
public static final java.lang.String CONFIG_DELTA_AGGREGATION_STATE
This is functionally equivalent to the IIQ side attribute Application.ATTR_DELTA_AGGREGATION but we have to use a different name since configuration attributes and options are merged here and "deltaAggregation" is used to indiciate the desire for delta agg.
public java.util.Map<java.lang.String,java.lang.Object> getConfig()
public void setConfig(java.util.Map<java.lang.String,java.lang.Object> config)
public java.util.List<Schema> getSchemas()
public void setSchemas(java.util.List<Schema> schemas)
public void addSchema(Schema schema)
public Schema getSchema(java.lang.String objectType)
public void setAttribute(java.lang.String attributeName,
java.lang.Object value)
public java.lang.Object getAttribute(java.lang.String name)
public java.lang.String getTypedAttribute(java.lang.String attributeName,
java.lang.String objectType)
public java.lang.String getString(java.lang.String name)
public boolean getBoolean(java.lang.String name)