Package io.atlasmap.core
Class DefaultAtlasContext
- java.lang.Object
-
- io.atlasmap.core.DefaultAtlasContext
-
- All Implemented Interfaces:
io.atlasmap.api.AtlasContext,io.atlasmap.mxbean.AtlasContextMXBean
public class DefaultAtlasContext extends Object implements io.atlasmap.api.AtlasContext, io.atlasmap.mxbean.AtlasContextMXBean
-
-
Constructor Summary
Constructors Constructor Description DefaultAtlasContext(DefaultAtlasContextFactory factory, io.atlasmap.api.AtlasContextFactory.Format format, InputStream stream)DefaultAtlasContext(DefaultAtlasContextFactory factory, io.atlasmap.v2.AtlasMapping mapping)DefaultAtlasContext(DefaultAtlasContextFactory factory, URI atlasMappingUri)DefaultAtlasContext(URI atlasMappingUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected io.atlasmap.v2.FieldapplyFieldActions(DefaultAtlasSession session, io.atlasmap.v2.Field field)io.atlasmap.api.AtlasSessioncreateSession()io.atlasmap.api.AtlasSessioncreateSession(io.atlasmap.v2.AtlasMapping mappingDefinition)ADMArchiveHandlergetADMArchiveHandler()StringgetClassName()DefaultAtlasContextFactorygetContextFactory()ObjectNamegetJmxObjectName()Map<String,io.atlasmap.v2.LookupTable>getLookupTables()io.atlasmap.v2.AtlasMappinggetMapping()StringgetMappingName()StringgetMappingUri()Map<String,io.atlasmap.spi.AtlasModule>getSourceModules()Map<String,io.atlasmap.spi.AtlasModule>getTargetModules()StringgetThreadName()StringgetUuid()StringgetVersion()protected voidinit()TODO: For dynamic re-load.voidprocess(io.atlasmap.api.AtlasSession userSession)Process session lifecycle.protected io.atlasmap.v2.FieldprocessCombineField(DefaultAtlasSession session, io.atlasmap.v2.Mapping mapping, List<io.atlasmap.v2.Field> sourceFields, io.atlasmap.v2.Field targetField)io.atlasmap.v2.AuditsprocessPreview(io.atlasmap.v2.Mapping mapping)Deprecated.UseAtlasPreviewContext#processPreview(Mapping)protected List<io.atlasmap.v2.Field>processSeparateField(DefaultAtlasSession session, io.atlasmap.v2.Mapping mapping, io.atlasmap.v2.Field sourceField)protected voidprocessSourceFieldMapping(DefaultAtlasSession session)voidprocessValidation(io.atlasmap.api.AtlasSession userSession)protected voidregisterJmx(DefaultAtlasContext context)protected io.atlasmap.spi.AtlasModuleresolveModule(io.atlasmap.spi.FieldDirection direction, io.atlasmap.v2.Field field)protected voidsetDefaultSessionProperties(io.atlasmap.api.AtlasSession session)protected voidsetJmxObjectName(ObjectName jmxObjectName)voidsetLookupTables(Map<String,io.atlasmap.v2.LookupTable> lookupTables)protected voidsetMappingUri(URI atlasMappingUri)voidsetSourceModules(Map<String,io.atlasmap.spi.AtlasModule> sourceModules)voidsetTargetModules(Map<String,io.atlasmap.spi.AtlasModule> targetModules)StringtoString()
-
-
-
Constructor Detail
-
DefaultAtlasContext
public DefaultAtlasContext(URI atlasMappingUri)
-
DefaultAtlasContext
public DefaultAtlasContext(DefaultAtlasContextFactory factory, URI atlasMappingUri)
-
DefaultAtlasContext
public DefaultAtlasContext(DefaultAtlasContextFactory factory, io.atlasmap.v2.AtlasMapping mapping)
-
DefaultAtlasContext
public DefaultAtlasContext(DefaultAtlasContextFactory factory, io.atlasmap.api.AtlasContextFactory.Format format, InputStream stream) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
-
Method Detail
-
init
protected void init() throws io.atlasmap.api.AtlasExceptionTODO: For dynamic re-load. This needs lock()- Throws:
io.atlasmap.api.AtlasException- failed to initialize
-
registerJmx
protected void registerJmx(DefaultAtlasContext context)
-
processPreview
@Deprecated public io.atlasmap.v2.Audits processPreview(io.atlasmap.v2.Mapping mapping) throws io.atlasmap.api.AtlasException
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 interfaceio.atlasmap.api.AtlasContext- Parameters:
mapping- A @link{Mapping} entry to process- Throws:
io.atlasmap.api.AtlasException
-
applyFieldActions
protected io.atlasmap.v2.Field applyFieldActions(DefaultAtlasSession session, io.atlasmap.v2.Field field)
-
process
public void process(io.atlasmap.api.AtlasSession userSession) throws io.atlasmap.api.AtlasExceptionProcess session lifecycle.- Specified by:
processin interfaceio.atlasmap.api.AtlasContext- Throws:
io.atlasmap.api.AtlasException
-
processSourceFieldMapping
protected void processSourceFieldMapping(DefaultAtlasSession session)
-
resolveModule
protected io.atlasmap.spi.AtlasModule resolveModule(io.atlasmap.spi.FieldDirection direction, io.atlasmap.v2.Field field)
-
processCombineField
protected io.atlasmap.v2.Field processCombineField(DefaultAtlasSession session, io.atlasmap.v2.Mapping mapping, List<io.atlasmap.v2.Field> sourceFields, io.atlasmap.v2.Field targetField)
-
processSeparateField
protected List<io.atlasmap.v2.Field> processSeparateField(DefaultAtlasSession session, io.atlasmap.v2.Mapping mapping, io.atlasmap.v2.Field sourceField) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
processValidation
public void processValidation(io.atlasmap.api.AtlasSession userSession) throws io.atlasmap.api.AtlasException- Specified by:
processValidationin interfaceio.atlasmap.api.AtlasContext- Throws:
io.atlasmap.api.AtlasException
-
getContextFactory
public DefaultAtlasContextFactory getContextFactory()
- Specified by:
getContextFactoryin interfaceio.atlasmap.api.AtlasContext
-
getMapping
public io.atlasmap.v2.AtlasMapping getMapping()
-
createSession
public io.atlasmap.api.AtlasSession createSession() throws io.atlasmap.api.AtlasException- Specified by:
createSessionin interfaceio.atlasmap.api.AtlasContext- Throws:
io.atlasmap.api.AtlasException
-
createSession
public io.atlasmap.api.AtlasSession createSession(io.atlasmap.v2.AtlasMapping mappingDefinition) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
setDefaultSessionProperties
protected void setDefaultSessionProperties(io.atlasmap.api.AtlasSession session)
-
setSourceModules
public void setSourceModules(Map<String,io.atlasmap.spi.AtlasModule> sourceModules)
-
setTargetModules
public void setTargetModules(Map<String,io.atlasmap.spi.AtlasModule> targetModules)
-
setJmxObjectName
protected void setJmxObjectName(ObjectName jmxObjectName)
-
getJmxObjectName
public ObjectName getJmxObjectName()
-
getUuid
public String getUuid()
- Specified by:
getUuidin interfaceio.atlasmap.mxbean.AtlasContextMXBean
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceio.atlasmap.mxbean.AtlasContextMXBean
-
getMappingName
public String getMappingName()
- Specified by:
getMappingNamein interfaceio.atlasmap.mxbean.AtlasContextMXBean
-
setMappingUri
protected void setMappingUri(URI atlasMappingUri)
-
getMappingUri
public String getMappingUri()
- Specified by:
getMappingUriin interfaceio.atlasmap.mxbean.AtlasContextMXBean
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceio.atlasmap.mxbean.AtlasContextMXBean
-
getThreadName
public String getThreadName()
- Specified by:
getThreadNamein interfaceio.atlasmap.mxbean.AtlasContextMXBean
-
getADMArchiveHandler
public ADMArchiveHandler getADMArchiveHandler()
-
-