Package com.ibm.di.config.base
Class PropertyStoreConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.PropertyStoreConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration
,MetamergeConfigChangeListener
,PropertyStoreConfig
,java.io.Serializable
public class PropertyStoreConfigImpl extends BaseConfigurationImpl implements PropertyStoreConfig
Implements the configuration for a single Property Store.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
-
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
CHILD_PATH_SEPARATOR, DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SEARCH_SUBSTRING, SUBTREE
-
-
Constructor Summary
Constructors Constructor Description PropertyStoreConfigImpl()
PropertyStoreConfigImpl(java.lang.Object config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCacheTimeout()
Returns the cache timeout for in-memory properties (0 == never cache)java.lang.Object
getClone()
Return self cloneRawConnectorConfig
getConnectionConfig()
Connector driver parametersboolean
getInitialLoad()
Returns true if the property data store is read into memory on creationjava.lang.String
getKeyAttribute()
Returns the attribute name used as key in the connectorjava.lang.String
getNameFilters()
Property name filtersParserConfig
getParserConfig()
Associated Parser configurationboolean
getReadOnly()
Returns true if store is read-onlyjava.lang.String
getValueAttribute()
Returns the attribute name used as value in the connectorvoid
init()
Called after internal data structure is set.void
setCacheTimeout(int timeout)
Sets the timeout in seconds before a property is considered stale.void
setDisplayString(java.lang.String name)
Used by the Config Editor to set the name that should be displayed for this PropertyStoreConfigvoid
setInitialLoad(boolean load)
Sets the initial load flag (true to load data source into memory)void
setKeyAttribute(java.lang.String attrname)
Sets the attribute name to use as property key in the connectorvoid
setNameFilters(java.lang.String filters)
Property name filtersvoid
setReadOnly(boolean readonly)
Returns true if store is read-onlyvoid
setValueAttribute(java.lang.String attrname)
Sets the attribute name to use for the value in the connectorjava.lang.String
toString()
Answers a string containing the name of the config.-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseConfigListeners, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willExpandProps, willFlatten, willUseInherited
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, detachFromParent, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Method Detail
-
init
public void init() throws java.lang.Exception
Description copied from class:BaseConfigurationImpl
Called after internal data structure is set.- Specified by:
init
in interfaceBaseConfiguration
- Overrides:
init
in classBaseConfigurationImpl
- Throws:
java.lang.Exception
- if the initialization fails.
-
getConnectionConfig
public RawConnectorConfig getConnectionConfig()
Connector driver parameters- Specified by:
getConnectionConfig
in interfacePropertyStoreConfig
- Returns:
- The connectionConfig value
-
getParserConfig
public ParserConfig getParserConfig()
Associated Parser configuration- Specified by:
getParserConfig
in interfacePropertyStoreConfig
- Returns:
- The parserConfig value
-
getNameFilters
public java.lang.String getNameFilters()
Property name filters- Specified by:
getNameFilters
in interfacePropertyStoreConfig
-
setNameFilters
public void setNameFilters(java.lang.String filters)
Property name filters- Specified by:
setNameFilters
in interfacePropertyStoreConfig
-
getReadOnly
public boolean getReadOnly()
Returns true if store is read-only- Specified by:
getReadOnly
in interfacePropertyStoreConfig
-
setReadOnly
public void setReadOnly(boolean readonly)
Returns true if store is read-only- Specified by:
setReadOnly
in interfacePropertyStoreConfig
-
getKeyAttribute
public java.lang.String getKeyAttribute()
Returns the attribute name used as key in the connector- Specified by:
getKeyAttribute
in interfacePropertyStoreConfig
-
setKeyAttribute
public void setKeyAttribute(java.lang.String attrname)
Sets the attribute name to use as property key in the connector- Specified by:
setKeyAttribute
in interfacePropertyStoreConfig
-
getValueAttribute
public java.lang.String getValueAttribute()
Returns the attribute name used as value in the connector- Specified by:
getValueAttribute
in interfacePropertyStoreConfig
-
setValueAttribute
public void setValueAttribute(java.lang.String attrname)
Sets the attribute name to use for the value in the connector- Specified by:
setValueAttribute
in interfacePropertyStoreConfig
-
getCacheTimeout
public int getCacheTimeout()
Returns the cache timeout for in-memory properties (0 == never cache)- Specified by:
getCacheTimeout
in interfacePropertyStoreConfig
-
setCacheTimeout
public void setCacheTimeout(int timeout)
Sets the timeout in seconds before a property is considered stale.- Specified by:
setCacheTimeout
in interfacePropertyStoreConfig
-
getInitialLoad
public boolean getInitialLoad()
Returns true if the property data store is read into memory on creation- Specified by:
getInitialLoad
in interfacePropertyStoreConfig
-
setInitialLoad
public void setInitialLoad(boolean load)
Sets the initial load flag (true to load data source into memory)- Specified by:
setInitialLoad
in interfacePropertyStoreConfig
-
getClone
public java.lang.Object getClone() throws java.lang.Exception
Return self clone- Specified by:
getClone
in interfaceBaseConfiguration
- Overrides:
getClone
in classBaseConfigurationImpl
- Returns:
- a cloned version of this object.
- Throws:
java.lang.Exception
-
setDisplayString
public void setDisplayString(java.lang.String name)
Used by the Config Editor to set the name that should be displayed for this PropertyStoreConfig
-
toString
public java.lang.String toString()
Description copied from class:BaseConfigurationImpl
Answers a string containing the name of the config.- Overrides:
toString
in classBaseConfigurationImpl
- Returns:
- a printable representation of the name
-
-