org.iges.grads.server
Class GradsImportModule

java.lang.Object
  |
  +--org.iges.anagram.AbstractModule
        |
        +--org.iges.grads.server.GradsImportModule
All Implemented Interfaces:
Module

public class GradsImportModule
extends AbstractModule

Creates data handles for GrADS datasets specified by XML configuration tags.


Field Summary
protected  Store store
           
protected  GradsTool tool
           
 
Fields inherited from class org.iges.anagram.AbstractModule
log, moduleName, parent, server
 
Constructor Summary
GradsImportModule(GradsTool tool)
           
 
Method Summary
 void configure(Setting setting)
          Configures the module according to the settings provided.
 DataHandle createHandle(java.lang.String name, java.lang.String gradsArgument, java.io.File userDAS, java.lang.String docURL, java.lang.String format, boolean directSubset, java.io.File sourceFile, java.util.List metadataFilters, java.util.List metadataAttributes)
           
 DataHandle[] doImport(Setting setting)
           
 java.lang.String getModuleID()
          Returns an ID for this module.
 java.io.File makeDescriptorFile(java.lang.String name, java.lang.String gradsArgument, int gradsBinaryType)
           
 
Methods inherited from class org.iges.anagram.AbstractModule
configModule, debug, debug, error, fail, fail, fail, getModuleName, info, init, toString, verbose, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tool

protected GradsTool tool

store

protected Store store
Constructor Detail

GradsImportModule

public GradsImportModule(GradsTool tool)
Method Detail

getModuleID

public java.lang.String getModuleID()
Description copied from interface: Module
Returns an ID for this module. This ID should be a legal XML tag name. It has two uses: as a tag name in the server's configuration file, and as the final element of the complete module name.

Specified by:
getModuleID in interface Module
Specified by:
getModuleID in class AbstractModule

configure

public void configure(Setting setting)
Description copied from class: AbstractModule
Configures the module according to the settings provided. The server supports dynamic reconfiguration. Thus this method may be called at any time in the life of the module. If the module cannot be reconfigured, it should throw an exception.

Specified by:
configure in interface Module
Specified by:
configure in class AbstractModule

doImport

public DataHandle[] doImport(Setting setting)

createHandle

public DataHandle createHandle(java.lang.String name,
                               java.lang.String gradsArgument,
                               java.io.File userDAS,
                               java.lang.String docURL,
                               java.lang.String format,
                               boolean directSubset,
                               java.io.File sourceFile,
                               java.util.List metadataFilters,
                               java.util.List metadataAttributes)
                        throws AnagramException
AnagramException

makeDescriptorFile

public java.io.File makeDescriptorFile(java.lang.String name,
                                       java.lang.String gradsArgument,
                                       int gradsBinaryType)
                                throws ModuleException
ModuleException