|
|||||||||
| 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.grads.server.GradsTaskModule
This module handles invoking GrADS as an external process.
| Field Summary | |
protected static java.lang.String[] |
binaryNames
|
protected boolean |
completeGrads
|
protected java.io.File[] |
gradsBinaries
|
protected java.io.File |
gradsBinary
|
protected java.io.File |
scriptDir
|
protected long |
timeLimit
|
protected GradsTool |
tool
|
protected boolean |
useNice
|
| Fields inherited from class org.iges.anagram.AbstractModule |
log, moduleName, parent, server |
| Constructor Summary | |
GradsTaskModule(GradsTool tool)
|
|
| Method Summary | |
protected void |
checkOutput(int gradsBinaryType,
java.io.File binary)
Does the actual work for verifyGrads() |
void |
configure(Setting setting)
Configures the module according to the settings provided. |
protected void |
findGrads(Setting setting)
Attempts to locate a GrADS executable using settings given. |
java.lang.String |
getModuleID()
Returns an ID for this module. |
long |
getTimeLimit()
|
Task |
task(int gradsBinaryType,
java.lang.String taskName,
java.lang.String[] args)
Creates a Task object that will run a GrADS script. |
protected void |
verifyGrads()
Checks that the GrADS executable specified is, in fact, a GrADS executable by running a little do-nothing GrADS script. |
| 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 |
protected GradsTool tool
protected static final java.lang.String[] binaryNames
protected boolean completeGrads
protected boolean useNice
protected java.io.File scriptDir
protected long timeLimit
protected java.io.File gradsBinary
protected java.io.File[] gradsBinaries
| Constructor Detail |
public GradsTaskModule(GradsTool tool)
| Method Detail |
public java.lang.String getModuleID()
Module
getModuleID in interface ModulegetModuleID in class AbstractModule
public void configure(Setting setting)
throws ConfigException
AbstractModule
configure in interface Moduleconfigure in class AbstractModuleConfigException
protected void findGrads(Setting setting)
throws ConfigException
ConfigException
protected void verifyGrads()
throws ConfigException
ConfigException
protected void checkOutput(int gradsBinaryType,
java.io.File binary)
throws ConfigException
ConfigException
public Task task(int gradsBinaryType,
java.lang.String taskName,
java.lang.String[] args)
throws ModuleException
[nice] grads_binary -bpcx
"script_dir/task_name.gs args"
gradsBinaryType - Which of the four GrADS binaries to run
(gradsc, hgradsnc, gradshdf, or gradsdods)taskName - The name of the GrADS script to run. The actual
filename of the script will be generated by prepending the
script_dir setting, and appending ".gs.args - Arguments to the script
ModuleExceptionpublic long getTimeLimit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||