org.lexgrid.loader.meta
Class MetaBatchLoaderImpl

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.meta.MetaBatchLoaderImpl
All Implemented Interfaces:
java.io.Serializable, Extendable, Loader, MetaBatchLoader, SpringBatchLoader, StatusReporter

public class MetaBatchLoaderImpl
extends AbstractSpringBatchLoader
implements MetaBatchLoader

The Class MetaBatchLoaderImpl.

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
 
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.MetaBatchLoader
DESCRIPTION, NAME, VERSION
 
Constructor Summary
MetaBatchLoaderImpl()
           
 
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.
 void loadMeta(java.net.URI rrfDir)
          Load meta.
static void main(java.lang.String[] args)
           
 void removeLoad(java.lang.String uri, java.lang.String version)
           
 void resumeMeta(java.net.URI rrfDir, java.lang.String uri, java.lang.String version)
          Resume meta.
 
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, getOntologyFormat, 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, getOntologyFormat, getOptions, getStatus, load, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences, setLoaderPreferences
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Extendable
getDescription, getProvider, getVersion
 

Constructor Detail

MetaBatchLoaderImpl

public MetaBatchLoaderImpl()
Method Detail

loadMeta

public void loadMeta(java.net.URI rrfDir)
              throws java.lang.Exception
Description copied from interface: MetaBatchLoader
Load meta.

Specified by:
loadMeta in interface MetaBatchLoader
Parameters:
rrfDir - the rrf dir
Throws:
java.lang.Exception - the exception

resumeMeta

public void resumeMeta(java.net.URI rrfDir,
                       java.lang.String uri,
                       java.lang.String version)
                throws java.lang.Exception
Description copied from interface: MetaBatchLoader
Resume meta.

Specified by:
resumeMeta in interface MetaBatchLoader
Parameters:
rrfDir - the rrf dir
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
Specified by:
removeLoad in interface MetaBatchLoader
Throws:
LBParameterException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

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

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

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.