public static class SoftwareServerAuxiliary.Script extends Object
Constructor and Description |
---|
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
|
boolean |
processNewHeader() |
void |
processOldHeader(String comment_head) |
public String filename
public String path
public String name
public String type
public String alias
public String operation
public String application
public HashMap<String,SoftwareServerAuxiliary.OperationParameters> inparameters
public HashMap<String,SoftwareServerAuxiliary.OperationParameters> outparameters
public Vector<SoftwareServerAuxiliary.SoftwareParameters> swparameters
public boolean processNewHeader()
public void processOldHeader(String comment_head)
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.