Package io.atlasmap.core
Class DefaultAtlasContext
java.lang.Object
io.atlasmap.core.DefaultAtlasContext
- All Implemented Interfaces:
AtlasContext
,AtlasContextMXBean
-
Constructor Summary
ConstructorDescriptionDefaultAtlasContext
(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 Field
applyFieldActions
(DefaultAtlasSession session, Field field) createSession
(AtlasMapping mappingDefinition) getUuid()
protected void
init()
TODO: For dynamic re-load.void
process
(AtlasSession userSession) Process session lifecycle.protected Field
processCombineField
(DefaultAtlasSession session, Mapping mapping, List<Field> sourceFields, Field targetField) processPreview
(Mapping mapping) Deprecated.processSeparateField
(DefaultAtlasSession session, Mapping mapping, Field sourceField) protected void
void
processValidation
(AtlasSession userSession) protected void
registerJmx
(DefaultAtlasContext context) protected AtlasModule
resolveModule
(FieldDirection direction, Field field) protected void
setDefaultSessionProperties
(AtlasSession session) protected void
setJmxObjectName
(ObjectName jmxObjectName) void
setLookupTables
(Map<String, LookupTable> lookupTables) protected void
setMappingUri
(URI atlasMappingUri) void
setSourceModules
(Map<String, AtlasModule> sourceModules) void
setTargetModules
(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:
processPreview
in interfaceAtlasContext
- Parameters:
mapping
- A @link{Mapping} entry to process- Returns:
- A list of audit log
- Throws:
AtlasException
-
applyFieldActions
-
process
Process session lifecycle.- Specified by:
process
in interfaceAtlasContext
- Throws:
AtlasException
-
processSourceFieldMapping
-
resolveModule
-
processCombineField
-
processSeparateField
protected List<Field> processSeparateField(DefaultAtlasSession session, Mapping mapping, Field sourceField) throws AtlasException - Throws:
AtlasException
-
processValidation
- Specified by:
processValidation
in interfaceAtlasContext
- Throws:
AtlasException
-
getContextFactory
- Specified by:
getContextFactory
in interfaceAtlasContext
-
getMapping
-
createSession
- Specified by:
createSession
in interfaceAtlasContext
- Throws:
AtlasException
-
createSession
- Throws:
AtlasException
-
setDefaultSessionProperties
-
getSourceModules
-
setSourceModules
-
getTargetModules
-
setTargetModules
-
getLookupTables
-
setLookupTables
-
setJmxObjectName
-
getJmxObjectName
-
getUuid
- Specified by:
getUuid
in interfaceAtlasContextMXBean
-
getVersion
- Specified by:
getVersion
in interfaceAtlasContextMXBean
-
getMappingName
- Specified by:
getMappingName
in interfaceAtlasContextMXBean
-
setMappingUri
-
getMappingUri
- Specified by:
getMappingUri
in interfaceAtlasContextMXBean
-
getClassName
- Specified by:
getClassName
in interfaceAtlasContextMXBean
-
getThreadName
- Specified by:
getThreadName
in interfaceAtlasContextMXBean
-
toString
-
getADMArchiveHandler
-
AtlasPreviewContext#processPreview(Mapping)