|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.iges.anagram.AbstractModule
|
+--org.iges.anagram.Tool
|
+--org.iges.grads.server.GradsTool
GrADS-based implementation of the Anagram framework. This just ties together the various specialized modules in to a single interface. For example, the actual work for routine data and metadata requests is done by the GradsDODSModule.
GradsUploadModule,
GradsUpdateModule,
GradsAnalysisModule,
GradsImportModule,
GradsDODSModule,
GradsTaskModule| Field Summary | |
protected GradsAnalysisModule |
analyzer
|
protected GradsDODSModule |
dods
|
protected GradsImportModule |
importer
|
protected GradsTaskModule |
task
|
protected GradsUpdateModule |
updater
|
protected GradsUploadModule |
uploader
|
| Fields inherited from class org.iges.anagram.AbstractModule |
log, moduleName, parent, server |
| Constructor Summary | |
GradsTool()
|
|
| Method Summary | |
void |
configure(Setting setting)
Configures the module according to the settings provided. |
TempDataHandle |
doAnalysis(java.lang.String name,
java.lang.String ae,
Privilege privilege)
Performs an analysis task. |
DataHandle[] |
doImport(Setting setting)
Creates usable handles for data objects specified by tags in the configuration file. |
boolean |
doUpdate(DataHandle data)
Creates an up-to-date version of the data handle provided. |
TempDataHandle |
doUpload(java.lang.String name,
java.io.InputStream input,
long size,
Privilege privilege)
Accepts an uploaded data object. |
DAS |
getDAS(DataHandle data)
Provides an object representation of a Data Attribute Structure. |
ServerDDS |
getDDS(DataHandle data,
java.lang.String ce)
Provides an object representation of a Data Descriptor Structure. |
java.lang.String |
getModuleID()
Returns an ID for this module. |
GradsTaskModule |
getTask()
Used internally. |
void |
init(Server server,
Module parent)
Saves references to the server, log module, and parent module, and constructs the complete module name. |
void |
writeASCIIData(DataHandle data,
java.lang.String ce,
Privilege privilege,
java.io.OutputStream out)
Writes a data subset to a stream in ASCII format. |
void |
writeBinaryData(DataHandle data,
java.lang.String ce,
Privilege privilege,
java.io.OutputStream out)
Writes a data subset to a stream in binary format. |
void |
writeDAS(DataHandle data,
java.io.OutputStream out)
Writes a Data Attribute Structure to a stream. |
void |
writeDDS(DataHandle data,
java.lang.String ce,
java.io.OutputStream out)
Writes a Data Descriptor Structure to a stream. |
void |
writeWebInfo(DataHandle data,
java.io.OutputStream out)
Writes a customized summary of the dataset, in the form of an HTML fragment, to the specified stream. |
| Methods inherited from class org.iges.anagram.AbstractModule |
configModule, debug, debug, error, fail, fail, fail, getModuleName, info, toString, verbose, verbose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected GradsUploadModule uploader
protected GradsUpdateModule updater
protected GradsAnalysisModule analyzer
protected GradsImportModule importer
protected GradsDODSModule dods
protected GradsTaskModule task
| Constructor Detail |
public GradsTool()
| Method Detail |
public java.lang.String getModuleID()
Module
getModuleID in interface ModulegetModuleID in class AbstractModule
public void init(Server server,
Module parent)
AbstractModule
init in interface Moduleinit in class AbstractModule
public void configure(Setting setting)
throws ConfigException
AbstractModule
configure in interface Moduleconfigure in class AbstractModuleConfigExceptionpublic DataHandle[] doImport(Setting setting)
ToolIf possible, the import method should skip data objects that are already loaded, and whose attributes have not changed.
This method does not need to be threadsafe.
doImport in class Toolsetting - The tag tree specifying the data objects. This will be
the tree rooted at the subtag of the
public TempDataHandle doAnalysis(java.lang.String name,
java.lang.String ae,
Privilege privilege)
throws ModuleException
ToolIf analysis is not supported, this method should throw an exception.
This method must be threadsafe.
doAnalysis in class Toolae - The analysis expression to be evaluated
ModuleException - if the analysis fails for any reason
public TempDataHandle doUpload(java.lang.String name,
java.io.InputStream input,
long size,
Privilege privilege)
throws ModuleException
ToolIf uploads are not supported, this method should throw an exception.
This method must be threadsafe.
doUpload in class Toolinput - The stream of data to be stored
ModuleException - if the operation fails for any reason
public boolean doUpdate(DataHandle data)
throws ModuleException
doUpdate in class ToolModuleException - If the data source has become unusable.
public ServerDDS getDDS(DataHandle data,
java.lang.String ce)
throws ModuleException
getDDS in class Tooldata - The data to be accessedce - A constraint to be applied to the DDS. Set to null to
retrieve an unconstrained DDS.
ModuleException - if the request fails for any reasonHandle.getSynch()
public DAS getDAS(DataHandle data)
throws ModuleException
getDAS in class Tooldata - The data to be accessed
ModuleException - if the request fails for any reasonHandle.getSynch()
public void writeDDS(DataHandle data,
java.lang.String ce,
java.io.OutputStream out)
throws ModuleException
writeDDS in class Tooldata - The data to be accessedce - A constraint to be applied to the DDS. Set to null to
retrieve an unconstrained DDS.out - A stream to which to write the DDS
ModuleException - if the request fails for any reasonHandle.getSynch()
public void writeDAS(DataHandle data,
java.io.OutputStream out)
throws ModuleException
writeDAS in class Tooldata - The data to be accessedout - A stream to which to write the DAS
ModuleException - if the request fails for any reasonHandle.getSynch()
public void writeWebInfo(DataHandle data,
java.io.OutputStream out)
throws ModuleException
Tooldata parameter before
this method is called. Other than that, this method must guarantee its own
thread-safety.
writeWebInfo in class Tooldata - The data object to be accessedout - A stream to which to write the DAS
ModuleException - if the request fails for any reasonHandle.getSynch()
public void writeBinaryData(DataHandle data,
java.lang.String ce,
Privilege privilege,
java.io.OutputStream out)
throws ModuleException
writeBinaryData in class Tooldata - The data to be accessedce - A constraint expression specifying the subset to be sentout - A stream to which to write the subset
ModuleException - if the request fails for any reasonHandle.getSynch()
public void writeASCIIData(DataHandle data,
java.lang.String ce,
Privilege privilege,
java.io.OutputStream out)
throws ModuleException
writeASCIIData in class Tooldata - The data to be accessedce - A constraint expression specifying the subset to be sentout - A stream to which to write the subset
ModuleException - if the request fails for any reasonHandle.getSynch()public GradsTaskModule getTask()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||