org.lexgrid.loader.umls
Class UmlsBatchLoaderImpl
java.lang.Object
org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
org.LexGrid.LexBIG.Impl.loaders.BaseLoader
org.lexgrid.loader.AbstractSpringBatchLoader
org.lexgrid.loader.umls.UmlsBatchLoaderImpl
- All Implemented Interfaces:
- java.io.Serializable, Extendable, Loader, SpringBatchLoader, UmlsBatchLoader, StatusReporter
public class UmlsBatchLoaderImpl
- extends AbstractSpringBatchLoader
- implements UmlsBatchLoader
The Class UmlsBatchLoaderImpl.
- Author:
- Kevin Peterson
- See Also:
- Serialized Form
Methods inherited from class org.LexGrid.LexBIG.Impl.loaders.BaseLoader |
addBooleanOptionValue, baseLoad, buildRootNode, clearLog, constructVersionPairsFromCodingSchemes, createCachingMessageDirectorIF, createDefaultInserter, createDefaultInserter, doesOptionExist, doIndex, doPostProcessing, doTransitiveAndIndex, doTransitiveTable, getAbsoluteCodingSchemeVersionReferenceFromOptionString, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getDescription, getLoaderPreferences, getLog, getLogger, getManifestUtil, getMessageDirector, getOptions, getPostProcessor, getProvider, getResourceUri, getStatus, getStringFromURI, getVersion, isDoApplyPostLoadManifest, isDoComputeTransitiveClosure, isDoIndexing, isDoRegister, isDoRemoveOnFailure, isInUse, load, lock, persistCodingSchemeToDatabase, persistCodingSchemeToDatabase, register, register, setCachingMessageDirectorIF, setCodingSchemeManifest, setCodingSchemeManifestURI, setCodingSchemeReferences, setDoApplyPostLoadManifest, setDoComputeTransitiveClosure, setDoIndexing, setDoRegister, setDoRemoveOnFailure, setInUse, setLoaderPreferences, setLoaderPreferences, setManifestUtil, setOptions, setResourceUri, setStatus, unlock, urnVersionPairToAbsoluteCodingSchemeVersionReference |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Load.Loader |
clearLog, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getLoaderPreferences, getLog, getOptions, getStatus, load, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences, setLoaderPreferences |
SAB_OPTION
public static java.lang.String SAB_OPTION
UmlsBatchLoaderImpl
public UmlsBatchLoaderImpl()
loadUmls
public void loadUmls(java.net.URI rrfDir,
java.lang.String sab)
throws java.lang.Exception
- Description copied from interface:
UmlsBatchLoader
- Load umls.
- Specified by:
loadUmls
in interface UmlsBatchLoader
- Parameters:
rrfDir
- the rrf dirsab
- the sab
- Throws:
java.lang.Exception
- the exception
resumeUmls
public void resumeUmls(java.net.URI rrfDir,
java.lang.String sab,
java.lang.String uri,
java.lang.String version)
throws java.lang.Exception
- Description copied from interface:
UmlsBatchLoader
- Resume umls.
- Specified by:
resumeUmls
in interface UmlsBatchLoader
- Parameters:
rrfDir
- the rrf dirsab
- the saburi
- the uriversion
- the version
- Throws:
java.lang.Exception
- the exception
removeLoad
public void removeLoad(java.lang.String uri,
java.lang.String version)
throws LBParameterException
- Description copied from interface:
UmlsBatchLoader
- Removes the load.
- Specified by:
removeLoad
in interface UmlsBatchLoader
- Parameters:
uri
- the uriversion
- the version
- Throws:
LBParameterException
getName
public java.lang.String getName()
- Description copied from interface:
Extendable
- Return the name assigned to this service extension. This name must be unique
within context of the installed node and is used to register and lookup
the extension through a LexBIGService.
- Specified by:
getName
in interface Extendable
- Overrides:
getName
in class BaseLoader
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
declareAllowedOptions
protected OptionHolder declareAllowedOptions(OptionHolder holder)
- Specified by:
declareAllowedOptions
in class BaseLoader
doLoad
protected URNVersionPair[] doLoad()
- Specified by:
doLoad
in class BaseLoader
getLoadedCodingSchemes
protected URNVersionPair[] getLoadedCodingSchemes(org.springframework.context.ApplicationContext context)
- Specified by:
getLoadedCodingSchemes
in class AbstractSpringBatchLoader
buildExtensionDescription
protected ExtensionDescription buildExtensionDescription()
- Description copied from class:
AbstractExtendable
- Builds the extension description.
- Specified by:
buildExtensionDescription
in class AbstractExtendable
- Returns:
- the extension description
getOntologyFormat
public OntologyFormat getOntologyFormat()
- Description copied from interface:
Loader
- Return the ontology format the loader can handle
- Specified by:
getOntologyFormat
in interface Loader
- Overrides:
getOntologyFormat
in class BaseLoader