Package io.atlasmap.core
Class BaseAtlasModule
java.lang.Object
io.atlasmap.core.BaseAtlasModule
- All Implemented Interfaces:
AtlasModuleMXBean,AtlasModule
- Direct Known Subclasses:
CsvModule,JavaModule,JsonModule,PropertyModule,XmlModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Fieldprotected Fieldprotected AtlasCollectionHelpercreateCollectionHelper(AtlasFieldActionService fieldActionService) voiddestroy()String[]getDocId()getMode()getName()String[]longlonglonglonglonglonglonglonglonglonglonglonggetUri()getUuid()voidinit()booleanbooleanisSupportedField(Field field) booleanvoidpopulateTargetField(AtlasInternalSession session) Populate target field value, usually by just copy from source field value.protected voidprocessLookupField(AtlasInternalSession session, LookupTable lookupTable, Object sourceValue, Field targetField) voidvoidsetAutomaticallyProcessOutputFieldActions(boolean automaticallyProcessOutputFieldActions) voidsetClassLoader(ClassLoader classLoader) voidsetConversionService(AtlasConversionService atlasConversionService) voidvoidvoidsetDocName(String docName) voidsetFieldActionService(AtlasFieldActionService atlasFieldActionService) voidsetMode(AtlasModuleMode atlasModuleMode) voidsetStatisticsEnabled(boolean enabled) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.atlasmap.spi.AtlasModule
cloneField, createField, processPostSourceExecution, processPostTargetExecution, processPreSourceExecution, processPreTargetExecution, processPreValidation, readSourceValue, writeTargetValue
-
Constructor Details
-
BaseAtlasModule
public BaseAtlasModule()
-
-
Method Details
-
init
- Specified by:
initin interfaceAtlasModule- Throws:
AtlasException
-
destroy
- Specified by:
destroyin interfaceAtlasModule- Throws:
AtlasException
-
setClassLoader
- Specified by:
setClassLoaderin interfaceAtlasModule
-
getClassLoader
- Specified by:
getClassLoaderin interfaceAtlasModule
-
processPostValidation
- Specified by:
processPostValidationin interfaceAtlasModule- Throws:
AtlasException
-
populateTargetField
Description copied from interface:AtlasModulePopulate target field value, usually by just copy from source field value. Also apply type converters where it's needed.- Specified by:
populateTargetFieldin interfaceAtlasModule- Parameters:
session- current session- Throws:
AtlasException- failed to populate target field value
-
processLookupField
protected void processLookupField(AtlasInternalSession session, LookupTable lookupTable, Object sourceValue, Field targetField) throws AtlasException - Throws:
AtlasException
-
applyTargetFieldActions
- Throws:
AtlasException
-
applySourceFieldActions
- Throws:
AtlasException
-
getMode
- Specified by:
getModein interfaceAtlasModule
-
setMode
- Specified by:
setModein interfaceAtlasModule
-
isStatisticsSupported
- Specified by:
isStatisticsSupportedin interfaceAtlasModule
-
isStatisticsEnabled
- Specified by:
isStatisticsEnabledin interfaceAtlasModule- Specified by:
isStatisticsEnabledin interfaceAtlasModuleMXBean
-
listSupportedModes
- Specified by:
listSupportedModesin interfaceAtlasModule
-
getConversionService
- Specified by:
getConversionServicein interfaceAtlasModule
-
getCollectionHelper
- Specified by:
getCollectionHelperin interfaceAtlasModule
-
getDocId
- Specified by:
getDocIdin interfaceAtlasModule
-
setDocId
- Specified by:
setDocIdin interfaceAtlasModule
-
getUri
- Specified by:
getUriin interfaceAtlasModule
-
setUri
- Specified by:
setUriin interfaceAtlasModule
-
getUriDataType
- Specified by:
getUriDataTypein interfaceAtlasModule
-
getUriParameters
- Specified by:
getUriParametersin interfaceAtlasModule
-
setConversionService
- Specified by:
setConversionServicein interfaceAtlasModule
-
getFieldActionService
- Specified by:
getFieldActionServicein interfaceAtlasModule
-
setFieldActionService
- Specified by:
setFieldActionServicein interfaceAtlasModule
-
createCollectionHelper
-
isAutomaticallyProcessOutputFieldActions
public boolean isAutomaticallyProcessOutputFieldActions() -
setAutomaticallyProcessOutputFieldActions
public void setAutomaticallyProcessOutputFieldActions(boolean automaticallyProcessOutputFieldActions) -
isSupportedField
- Specified by:
isSupportedFieldin interfaceAtlasModule
-
setDataSourceMetadata
- Specified by:
setDataSourceMetadatain interfaceAtlasModule
-
getDataSourceMetadata
- Specified by:
getDataSourceMetadatain interfaceAtlasModule
-
setDocName
- Specified by:
setDocNamein interfaceAtlasModule
-
getDocName
- Specified by:
getDocNamein interfaceAtlasModule
-
isSourceSupported
public boolean isSourceSupported()- Specified by:
isSourceSupportedin interfaceAtlasModuleMXBean
-
isTargetSupported
public boolean isTargetSupported()- Specified by:
isTargetSupportedin interfaceAtlasModuleMXBean
-
getClassName
- Specified by:
getClassNamein interfaceAtlasModuleMXBean
-
getDataFormats
- Specified by:
getDataFormatsin interfaceAtlasModuleMXBean
-
getModeName
- Specified by:
getModeNamein interfaceAtlasModuleMXBean
-
getName
- Specified by:
getNamein interfaceAtlasModuleMXBean
-
getPackageNames
- Specified by:
getPackageNamesin interfaceAtlasModuleMXBean
-
getSourceErrorCount
public long getSourceErrorCount()- Specified by:
getSourceErrorCountin interfaceAtlasModuleMXBean
-
getSourceCount
public long getSourceCount()- Specified by:
getSourceCountin interfaceAtlasModuleMXBean
-
getSourceMaxExecutionTime
public long getSourceMaxExecutionTime()- Specified by:
getSourceMaxExecutionTimein interfaceAtlasModuleMXBean
-
getSourceMinExecutionTime
public long getSourceMinExecutionTime()- Specified by:
getSourceMinExecutionTimein interfaceAtlasModuleMXBean
-
getSourceSuccessCount
public long getSourceSuccessCount()- Specified by:
getSourceSuccessCountin interfaceAtlasModuleMXBean
-
getSourceTotalExecutionTime
public long getSourceTotalExecutionTime()- Specified by:
getSourceTotalExecutionTimein interfaceAtlasModuleMXBean
-
getTargetCount
public long getTargetCount()- Specified by:
getTargetCountin interfaceAtlasModuleMXBean
-
getTargetErrorCount
public long getTargetErrorCount()- Specified by:
getTargetErrorCountin interfaceAtlasModuleMXBean
-
getTargetMaxExecutionTime
public long getTargetMaxExecutionTime()- Specified by:
getTargetMaxExecutionTimein interfaceAtlasModuleMXBean
-
getTargetMinExecutionTime
public long getTargetMinExecutionTime()- Specified by:
getTargetMinExecutionTimein interfaceAtlasModuleMXBean
-
getTargetSuccessCount
public long getTargetSuccessCount()- Specified by:
getTargetSuccessCountin interfaceAtlasModuleMXBean
-
getTargetTotalExecutionTime
public long getTargetTotalExecutionTime()- Specified by:
getTargetTotalExecutionTimein interfaceAtlasModuleMXBean
-
getUuid
- Specified by:
getUuidin interfaceAtlasModuleMXBean
-
getVersion
- Specified by:
getVersionin interfaceAtlasModuleMXBean
-
readAndResetStatistics
- Specified by:
readAndResetStatisticsin interfaceAtlasModuleMXBean
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled) - Specified by:
setStatisticsEnabledin interfaceAtlasModuleMXBean
-