org.lexgrid.loader.umls
Class UmlsBatchLoaderImpl

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
      extended by org.LexGrid.LexBIG.Impl.loaders.BaseLoader
          extended by org.lexgrid.loader.AbstractSpringBatchLoader
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.LexGrid.LexBIG.Impl.loaders.BaseLoader
BaseLoader.DoConversion
 
Field Summary
static java.lang.String SAB_OPTION
           
 
Fields inherited from class org.LexGrid.LexBIG.Impl.loaders.BaseLoader
ASYNC_OPTION, FAIL_ON_ERROR_OPTION, inUse, LOADER_POST_PROCESSOR_OPTION, LOADER_PREFERENCE_FILE_OPTION, MANIFEST_FILE_OPTION, SUPPLEMENT_OPTION
 
Fields inherited from interface org.LexGrid.LexBIG.Extensions.Load.UmlsBatchLoader
DESCRIPTION, NAME, VERSION
 
Constructor Summary
UmlsBatchLoaderImpl()
           
 
Method Summary
protected  ExtensionDescription buildExtensionDescription()
          Builds the extension description.
protected  OptionHolder declareAllowedOptions(OptionHolder holder)
           
protected  URNVersionPair[] doLoad()
           
protected  URNVersionPair[] getLoadedCodingSchemes(org.springframework.context.ApplicationContext context)
           
 java.lang.String getName()
          Return the name assigned to this service extension.
 OntologyFormat getOntologyFormat()
          Return the ontology format the loader can handle
 void loadUmls(java.net.URI rrfDir, java.lang.String sab)
          Load umls.
static void main(java.lang.String[] args)
           
 void removeLoad(java.lang.String uri, java.lang.String version)
          Removes the load.
 void resumeUmls(java.net.URI rrfDir, java.lang.String sab, java.lang.String uri, java.lang.String version)
          Resume umls.
 
Methods inherited from class org.lexgrid.loader.AbstractSpringBatchLoader
buildJobParameters, getJobExecution, getLoadedCodingSchemes, getURIFromPath, launchJob, printJobProperties, printStartLogInfo, processStateConverter, setLoadedCodingSchemes
 
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 org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
getExtensionDescription
 
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.SpringBatchLoader
getJobExecution
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Load.Loader
clearLog, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getLoaderPreferences, getLog, getOptions, getStatus, load, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences, setLoaderPreferences
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Extendable
getDescription, getProvider, getVersion
 

Field Detail

SAB_OPTION

public static java.lang.String SAB_OPTION
Constructor Detail

UmlsBatchLoaderImpl

public UmlsBatchLoaderImpl()
Method Detail

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 dir
sab - 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 dir
sab - the sab
uri - the uri
version - 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 uri
version - 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

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.