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 intgetCacheTimeout()Returns the cache timeout for in-memory properties (0 == never cache)java.lang.ObjectgetClone()Return self cloneRawConnectorConfiggetConnectionConfig()Connector driver parametersbooleangetInitialLoad()Returns true if the property data store is read into memory on creationjava.lang.StringgetKeyAttribute()Returns the attribute name used as key in the connectorjava.lang.StringgetNameFilters()Property name filtersParserConfiggetParserConfig()Associated Parser configurationbooleangetReadOnly()Returns true if store is read-onlyjava.lang.StringgetValueAttribute()Returns the attribute name used as value in the connectorvoidinit()Called after internal data structure is set.voidsetCacheTimeout(int timeout)Sets the timeout in seconds before a property is considered stale.voidsetDisplayString(java.lang.String name)Used by the Config Editor to set the name that should be displayed for this PropertyStoreConfigvoidsetInitialLoad(boolean load)Sets the initial load flag (true to load data source into memory)voidsetKeyAttribute(java.lang.String attrname)Sets the attribute name to use as property key in the connectorvoidsetNameFilters(java.lang.String filters)Property name filtersvoidsetReadOnly(boolean readonly)Returns true if store is read-onlyvoidsetValueAttribute(java.lang.String attrname)Sets the attribute name to use for the value in the connectorjava.lang.StringtoString()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.ExceptionDescription copied from class:BaseConfigurationImplCalled after internal data structure is set.- Specified by:
initin interfaceBaseConfiguration- Overrides:
initin classBaseConfigurationImpl- Throws:
java.lang.Exception- if the initialization fails.
-
getConnectionConfig
public RawConnectorConfig getConnectionConfig()
Connector driver parameters- Specified by:
getConnectionConfigin interfacePropertyStoreConfig- Returns:
- The connectionConfig value
-
getParserConfig
public ParserConfig getParserConfig()
Associated Parser configuration- Specified by:
getParserConfigin interfacePropertyStoreConfig- Returns:
- The parserConfig value
-
getNameFilters
public java.lang.String getNameFilters()
Property name filters- Specified by:
getNameFiltersin interfacePropertyStoreConfig
-
setNameFilters
public void setNameFilters(java.lang.String filters)
Property name filters- Specified by:
setNameFiltersin interfacePropertyStoreConfig
-
getReadOnly
public boolean getReadOnly()
Returns true if store is read-only- Specified by:
getReadOnlyin interfacePropertyStoreConfig
-
setReadOnly
public void setReadOnly(boolean readonly)
Returns true if store is read-only- Specified by:
setReadOnlyin interfacePropertyStoreConfig
-
getKeyAttribute
public java.lang.String getKeyAttribute()
Returns the attribute name used as key in the connector- Specified by:
getKeyAttributein interfacePropertyStoreConfig
-
setKeyAttribute
public void setKeyAttribute(java.lang.String attrname)
Sets the attribute name to use as property key in the connector- Specified by:
setKeyAttributein interfacePropertyStoreConfig
-
getValueAttribute
public java.lang.String getValueAttribute()
Returns the attribute name used as value in the connector- Specified by:
getValueAttributein interfacePropertyStoreConfig
-
setValueAttribute
public void setValueAttribute(java.lang.String attrname)
Sets the attribute name to use for the value in the connector- Specified by:
setValueAttributein interfacePropertyStoreConfig
-
getCacheTimeout
public int getCacheTimeout()
Returns the cache timeout for in-memory properties (0 == never cache)- Specified by:
getCacheTimeoutin interfacePropertyStoreConfig
-
setCacheTimeout
public void setCacheTimeout(int timeout)
Sets the timeout in seconds before a property is considered stale.- Specified by:
setCacheTimeoutin interfacePropertyStoreConfig
-
getInitialLoad
public boolean getInitialLoad()
Returns true if the property data store is read into memory on creation- Specified by:
getInitialLoadin interfacePropertyStoreConfig
-
setInitialLoad
public void setInitialLoad(boolean load)
Sets the initial load flag (true to load data source into memory)- Specified by:
setInitialLoadin interfacePropertyStoreConfig
-
getClone
public java.lang.Object getClone() throws java.lang.ExceptionReturn self clone- Specified by:
getClonein interfaceBaseConfiguration- Overrides:
getClonein 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:BaseConfigurationImplAnswers a string containing the name of the config.- Overrides:
toStringin classBaseConfigurationImpl- Returns:
- a printable representation of the name
-
-