public static class SoftwareServerAuxiliary.Script extends Object
Modifier and Type | Field and Description |
---|---|
String |
alias |
String |
application |
TreeSet<String> |
executables |
String |
filename |
TreeSet<String> |
inputs |
String |
name |
String |
operation |
TreeSet<String> |
outputs |
String |
path |
static SoftwareServerAuxiliary.ScriptTypes |
scripttypes |
String |
type |
TreeSet<String> |
types |
Constructor and Description |
---|
SoftwareServerAuxiliary.Script()
Class constructor.
|
SoftwareServerAuxiliary.Script(String filename)
Class constructor.
|
SoftwareServerAuxiliary.Script(String filename,
String comment_head)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute this script.
|
static void |
execute(String script)
Execute a script.
|
void |
executeAndWait()
Execute this script.
|
static void |
executeAndWait(String script)
Execute a script.
|
boolean |
executeAndWait(String source,
String target,
String temp_path,
int max_runtime)
Execute this script.
|
boolean |
executeAndWait(String source,
String target,
String temp_path,
int max_runtime,
boolean HANDLE_OUTPUT)
Execute this script.
|
Vector<SoftwareServerAuxiliary.Script> |
getAssociatedInputScripts()
Search this scripts path for input scripts associated with this application.
|
Vector<SoftwareServerAuxiliary.Script> |
getAssociatedOutputScripts()
Search this scripts path for output scripts associated with this application.
|
static String |
getCommand(String script)
Get the execution command for the given script.
|
static String |
getCommand(String script,
String source,
String target,
String temp_path)
Get the execution command for the given script.
|
TreeSet<String> |
getExecutables()
Get the executables called by the script.
|
static String |
getOperation(String script)
Get the operation performed by the given script.
|
String |
getOperationScriptname(String operation)
Return the name of an associated script for the given operation.
|
TreeSet<String> |
parseFormatList(String line)
Parse a line from a script header containing a format list
|
public String filename
public String path
public String name
public String type
public String alias
public String operation
public String application
public static SoftwareServerAuxiliary.ScriptTypes scripttypes
public SoftwareServerAuxiliary.Script()
public SoftwareServerAuxiliary.Script(String filename)
filename
- the script file namepublic SoftwareServerAuxiliary.Script(String filename, String comment_head)
filename
- the script file namecomment_head
- the preceding sequence of characters indicating a commented line (can be null)public TreeSet<String> parseFormatList(String line)
line
- the line containing the format listpublic String getOperationScriptname(String operation)
operation
- the desired operationpublic Vector<SoftwareServerAuxiliary.Script> getAssociatedInputScripts()
public Vector<SoftwareServerAuxiliary.Script> getAssociatedOutputScripts()
public TreeSet<String> getExecutables()
public static String getOperation(String script)
script
- the script filenamepublic static String getCommand(String script)
script
- the absolute filename of the scriptpublic static String getCommand(String script, String source, String target, String temp_path)
script
- the absolute filename of the scriptsource
- the first argument to pass to the scripttarget
- the second argument to pass to the scripttemp_path
- the third argument to pass to the scriptpublic static void executeAndWait(String script)
script
- the absolute filename of the scriptpublic boolean executeAndWait(String source, String target, String temp_path, int max_runtime, boolean HANDLE_OUTPUT)
source
- the first argument to pass to the scripttarget
- the second argument to pass to the scripttemp_path
- the third argument to pass to the scriptmax_runtime
- the maximum allowed time to run (in milli-seconds)HANDLE_OUTPUT
- true if the process output should be handledpublic boolean executeAndWait(String source, String target, String temp_path, int max_runtime)
source
- the first argument to pass to the scripttarget
- the second argument to pass to the scripttemp_path
- the third argument to pass to the scriptmax_runtime
- the maximum allowed time to run (in milli-seconds)public void executeAndWait()
public static void execute(String script)
script
- the absolute filename of the scriptpublic void execute()
Copyright © 2014. All rights reserved.