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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Field
protected Field
protected AtlasCollectionHelper
createCollectionHelper
(AtlasFieldActionService fieldActionService) void
destroy()
String[]
getDocId()
getMode()
getName()
String[]
long
long
long
long
long
long
long
long
long
long
long
long
getUri()
getUuid()
void
init()
boolean
boolean
isSupportedField
(Field field) boolean
void
populateTargetField
(AtlasInternalSession session) Populate target field value, usually by just copy from source field value.protected void
processLookupField
(AtlasInternalSession session, LookupTable lookupTable, Object sourceValue, Field targetField) void
void
setAutomaticallyProcessOutputFieldActions
(boolean automaticallyProcessOutputFieldActions) void
setClassLoader
(ClassLoader classLoader) void
setConversionService
(AtlasConversionService atlasConversionService) void
void
void
setDocName
(String docName) void
setFieldActionService
(AtlasFieldActionService atlasFieldActionService) void
setMode
(AtlasModuleMode atlasModuleMode) void
setStatisticsEnabled
(boolean enabled) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
init
in interfaceAtlasModule
- Throws:
AtlasException
-
destroy
- Specified by:
destroy
in interfaceAtlasModule
- Throws:
AtlasException
-
setClassLoader
- Specified by:
setClassLoader
in interfaceAtlasModule
-
getClassLoader
- Specified by:
getClassLoader
in interfaceAtlasModule
-
processPostValidation
- Specified by:
processPostValidation
in interfaceAtlasModule
- Throws:
AtlasException
-
populateTargetField
Description copied from interface:AtlasModule
Populate target field value, usually by just copy from source field value. Also apply type converters where it's needed.- Specified by:
populateTargetField
in 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:
getMode
in interfaceAtlasModule
-
setMode
- Specified by:
setMode
in interfaceAtlasModule
-
isStatisticsSupported
- Specified by:
isStatisticsSupported
in interfaceAtlasModule
-
isStatisticsEnabled
- Specified by:
isStatisticsEnabled
in interfaceAtlasModule
- Specified by:
isStatisticsEnabled
in interfaceAtlasModuleMXBean
-
listSupportedModes
- Specified by:
listSupportedModes
in interfaceAtlasModule
-
getConversionService
- Specified by:
getConversionService
in interfaceAtlasModule
-
getCollectionHelper
- Specified by:
getCollectionHelper
in interfaceAtlasModule
-
getDocId
- Specified by:
getDocId
in interfaceAtlasModule
-
setDocId
- Specified by:
setDocId
in interfaceAtlasModule
-
getUri
- Specified by:
getUri
in interfaceAtlasModule
-
setUri
- Specified by:
setUri
in interfaceAtlasModule
-
getUriDataType
- Specified by:
getUriDataType
in interfaceAtlasModule
-
getUriParameters
- Specified by:
getUriParameters
in interfaceAtlasModule
-
setConversionService
- Specified by:
setConversionService
in interfaceAtlasModule
-
getFieldActionService
- Specified by:
getFieldActionService
in interfaceAtlasModule
-
setFieldActionService
- Specified by:
setFieldActionService
in interfaceAtlasModule
-
createCollectionHelper
-
isAutomaticallyProcessOutputFieldActions
public boolean isAutomaticallyProcessOutputFieldActions() -
setAutomaticallyProcessOutputFieldActions
public void setAutomaticallyProcessOutputFieldActions(boolean automaticallyProcessOutputFieldActions) -
isSupportedField
- Specified by:
isSupportedField
in interfaceAtlasModule
-
setDataSourceMetadata
- Specified by:
setDataSourceMetadata
in interfaceAtlasModule
-
getDataSourceMetadata
- Specified by:
getDataSourceMetadata
in interfaceAtlasModule
-
setDocName
- Specified by:
setDocName
in interfaceAtlasModule
-
getDocName
- Specified by:
getDocName
in interfaceAtlasModule
-
isSourceSupported
public boolean isSourceSupported()- Specified by:
isSourceSupported
in interfaceAtlasModuleMXBean
-
isTargetSupported
public boolean isTargetSupported()- Specified by:
isTargetSupported
in interfaceAtlasModuleMXBean
-
getClassName
- Specified by:
getClassName
in interfaceAtlasModuleMXBean
-
getDataFormats
- Specified by:
getDataFormats
in interfaceAtlasModuleMXBean
-
getModeName
- Specified by:
getModeName
in interfaceAtlasModuleMXBean
-
getName
- Specified by:
getName
in interfaceAtlasModuleMXBean
-
getPackageNames
- Specified by:
getPackageNames
in interfaceAtlasModuleMXBean
-
getSourceErrorCount
public long getSourceErrorCount()- Specified by:
getSourceErrorCount
in interfaceAtlasModuleMXBean
-
getSourceCount
public long getSourceCount()- Specified by:
getSourceCount
in interfaceAtlasModuleMXBean
-
getSourceMaxExecutionTime
public long getSourceMaxExecutionTime()- Specified by:
getSourceMaxExecutionTime
in interfaceAtlasModuleMXBean
-
getSourceMinExecutionTime
public long getSourceMinExecutionTime()- Specified by:
getSourceMinExecutionTime
in interfaceAtlasModuleMXBean
-
getSourceSuccessCount
public long getSourceSuccessCount()- Specified by:
getSourceSuccessCount
in interfaceAtlasModuleMXBean
-
getSourceTotalExecutionTime
public long getSourceTotalExecutionTime()- Specified by:
getSourceTotalExecutionTime
in interfaceAtlasModuleMXBean
-
getTargetCount
public long getTargetCount()- Specified by:
getTargetCount
in interfaceAtlasModuleMXBean
-
getTargetErrorCount
public long getTargetErrorCount()- Specified by:
getTargetErrorCount
in interfaceAtlasModuleMXBean
-
getTargetMaxExecutionTime
public long getTargetMaxExecutionTime()- Specified by:
getTargetMaxExecutionTime
in interfaceAtlasModuleMXBean
-
getTargetMinExecutionTime
public long getTargetMinExecutionTime()- Specified by:
getTargetMinExecutionTime
in interfaceAtlasModuleMXBean
-
getTargetSuccessCount
public long getTargetSuccessCount()- Specified by:
getTargetSuccessCount
in interfaceAtlasModuleMXBean
-
getTargetTotalExecutionTime
public long getTargetTotalExecutionTime()- Specified by:
getTargetTotalExecutionTime
in interfaceAtlasModuleMXBean
-
getUuid
- Specified by:
getUuid
in interfaceAtlasModuleMXBean
-
getVersion
- Specified by:
getVersion
in interfaceAtlasModuleMXBean
-
readAndResetStatistics
- Specified by:
readAndResetStatistics
in interfaceAtlasModuleMXBean
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean enabled) - Specified by:
setStatisticsEnabled
in interfaceAtlasModuleMXBean
-