Package io.atlasmap.core
Class DefaultAtlasContext
java.lang.Object
io.atlasmap.core.DefaultAtlasContext
- All Implemented Interfaces:
AtlasContext,AtlasContextMXBean
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAtlasContext(DefaultAtlasContextFactory factory, AtlasContextFactory.Format format, InputStream stream) DefaultAtlasContext(DefaultAtlasContextFactory factory, AtlasMapping mapping) DefaultAtlasContext(DefaultAtlasContextFactory factory, URI atlasMappingUri) DefaultAtlasContext(URI atlasMappingUri) -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldapplyFieldActions(DefaultAtlasSession session, Field field) createSession(AtlasMapping mappingDefinition) getUuid()protected voidinit()TODO: For dynamic re-load.voidprocess(AtlasSession userSession) Process session lifecycle.protected FieldprocessCombineField(DefaultAtlasSession session, Mapping mapping, List<Field> sourceFields, Field targetField) processPreview(Mapping mapping) Deprecated.processSeparateField(DefaultAtlasSession session, Mapping mapping, Field sourceField) protected voidvoidprocessValidation(AtlasSession userSession) protected voidregisterJmx(DefaultAtlasContext context) protected AtlasModuleresolveModule(FieldDirection direction, Field field) protected voidsetDefaultSessionProperties(AtlasSession session) protected voidsetJmxObjectName(ObjectName jmxObjectName) voidsetLookupTables(Map<String, LookupTable> lookupTables) protected voidsetMappingUri(URI atlasMappingUri) voidsetSourceModules(Map<String, AtlasModule> sourceModules) voidsetTargetModules(Map<String, AtlasModule> targetModules) toString()
-
Constructor Details
-
DefaultAtlasContext
-
DefaultAtlasContext
-
DefaultAtlasContext
-
DefaultAtlasContext
public DefaultAtlasContext(DefaultAtlasContextFactory factory, AtlasContextFactory.Format format, InputStream stream) throws AtlasException - Throws:
AtlasException
-
-
Method Details
-
init
TODO: For dynamic re-load. This needs lock()- Throws:
AtlasException- failed to initialize
-
registerJmx
-
processPreview
Deprecated.UseAtlasPreviewContext#processPreview(Mapping)Process single mapping entry in preview mode. Since modules don't participate in preview mode, any document format specific function won't be applied.- Specified by:
processPreviewin interfaceAtlasContext- Parameters:
mapping- A @link{Mapping} entry to process- Returns:
- A list of audit log
- Throws:
AtlasException
-
applyFieldActions
-
process
Process session lifecycle.- Specified by:
processin interfaceAtlasContext- Throws:
AtlasException
-
processSourceFieldMapping
-
resolveModule
-
processCombineField
-
processSeparateField
protected List<Field> processSeparateField(DefaultAtlasSession session, Mapping mapping, Field sourceField) throws AtlasException - Throws:
AtlasException
-
processValidation
- Specified by:
processValidationin interfaceAtlasContext- Throws:
AtlasException
-
getContextFactory
- Specified by:
getContextFactoryin interfaceAtlasContext
-
getMapping
-
createSession
- Specified by:
createSessionin interfaceAtlasContext- Throws:
AtlasException
-
createSession
- Throws:
AtlasException
-
setDefaultSessionProperties
-
getSourceModules
-
setSourceModules
-
getTargetModules
-
setTargetModules
-
getLookupTables
-
setLookupTables
-
setJmxObjectName
-
getJmxObjectName
-
getUuid
- Specified by:
getUuidin interfaceAtlasContextMXBean
-
getVersion
- Specified by:
getVersionin interfaceAtlasContextMXBean
-
getMappingName
- Specified by:
getMappingNamein interfaceAtlasContextMXBean
-
setMappingUri
-
getMappingUri
- Specified by:
getMappingUriin interfaceAtlasContextMXBean
-
getClassName
- Specified by:
getClassNamein interfaceAtlasContextMXBean
-
getThreadName
- Specified by:
getThreadNamein interfaceAtlasContextMXBean
-
toString
-
getADMArchiveHandler
-
AtlasPreviewContext#processPreview(Mapping)