public class ReturnValue extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ReturnValue.ExitStatus |
Modifier and Type | Field and Description |
---|---|
protected String |
algorithm |
protected Map<String,String> |
attributes |
static int |
DBCOULDNOTDISCONNECT
Constant
DBCOULDNOTDISCONNECT=81 |
static int |
DBCOULDNOTINITIALIZE
Constant
DBCOULDNOTINITIALIZE=80 |
protected String |
description |
static int |
DIRECTORYNOTREADABLE
Constant
DIRECTORYNOTREADABLE=3 |
static int |
DIRECTORYNOTWRITABLE
Constant
DIRECTORYNOTWRITABLE=11 |
static int |
ENVVARNOTFOUND
Constant
ENVVARNOTFOUND=14 |
protected int |
exitStatus |
static int |
FAILURE
Constant
FAILURE=15 |
static int |
FILEEMPTY
Constant
FILEEMPTY=12 |
static int |
FILENOTEXECUTABLE
Constant
FILENOTEXECUTABLE=10 |
static int |
FILENOTREADABLE
Constant
FILENOTREADABLE=4 |
static int |
FILENOTWRITABLE
Constant
FILENOTWRITABLE=5 |
protected ArrayList<FileMetadata> |
files |
static int |
FREEMARKEREXCEPTION
Constant
FREEMARKEREXCEPTION=70 |
static int |
INVALIDARGUMENT
Constant
INVALIDARGUMENT=9 |
static int |
INVALIDFILE
Constant
INVALIDFILE=7 |
static int |
INVALIDPARAMETERS
Constant
INVALIDPARAMETERS=2 |
static int |
INVALIDPLUGIN
Constant
INVALIDPLUGIN=120 |
static int |
METADATAINVALIDIDCHAIN
Constant
METADATAINVALIDIDCHAIN=8 |
static int |
NOTIMPLEMENTED
Constant
NOTIMPLEMENTED=-1 |
static int |
NULL
Constant
NULL=-99 |
protected String |
parameters |
protected int |
processExitStatus |
static int |
PROCESSING
Constant
PROCESSING=100 |
static int |
PROGRAMFAILED
Constant
PROGRAMFAILED=1 |
static int |
QUEUED
Constant
QUEUED=101 |
static int |
RETURNEDHELPMSG
Constant
RETURNEDHELPMSG=110 |
protected int |
returnValue |
static int |
RUNNERERR
Constant
RUNNERERR=91 |
protected Date |
runStartTstmp |
protected Date |
runStopTstmp |
static int |
RUNTIMEEXCEPTION
Constant
RUNTIMEEXCEPTION=6 |
static int |
SETTINGSFILENOTFOUND
Constant
SETTINGSFILENOTFOUND=13 |
static int |
SQLQUERYFAILED
Constant
SQLQUERYFAILED=82 |
protected String |
stderr |
protected String |
stdout |
static int |
STDOUTERR
Constant
STDOUTERR=90 |
static int |
SUCCESS
Constant
SUCCESS=0 |
static int |
UNKNOWN
Constant
UNKNOWN=130 |
protected String |
url |
protected String |
urlLabel |
protected String |
version |
Constructor and Description |
---|
ReturnValue()
Constructor for ReturnValue.
|
ReturnValue(int startExitStatus)
Constructor for ReturnValue.
|
ReturnValue(ReturnValue.ExitStatus exitStatus)
Constructor for ReturnValue.
|
ReturnValue(String startStdout,
String startStderr,
int startExitStatus)
Constructor for ReturnValue.
|
Modifier and Type | Method and Description |
---|---|
static ReturnValue |
featureNotImplemented()
featureNotImplemented.
|
String |
getAlgorithm()
Getter for the field
algorithm . |
String |
getAttribute(String key)
getAttribute.
|
Map<String,String> |
getAttributes()
Getter for the field
attributes . |
String |
getDescription()
Getter for the field
description . |
int |
getExitStatus()
Getter for the field
exitStatus . |
ArrayList<FileMetadata> |
getFiles()
Getter for the field
files . |
String |
getParameters()
Getter for the field
parameters . |
int |
getProcessExitStatus()
Getter for the field
processExitStatus . |
int |
getReturnValue()
Getter for the field
returnValue . |
Date |
getRunStartTstmp()
Getter for the field
runStartTstmp . |
Date |
getRunStopTstmp()
Getter for the field
runStopTstmp . |
String |
getStderr()
Getter for the field
stderr . |
String |
getStdout()
Getter for the field
stdout . |
String |
getUrl()
Getter for the field
url . |
String |
getUrlLabel()
Getter for the field
urlLabel . |
String |
getVersion()
Getter for the field
version . |
void |
printAndAppendtoStderr(String errorMessage)
printAndAppendtoStderr.
|
void |
printAndAppendtoStdout(String outMessage)
printAndAppendtoStdout.
|
void |
setAlgorithm(String algorithm)
Setter for the field
algorithm . |
void |
setAttribute(String key,
String value)
setAttribute.
|
void |
setAttributes(Map<String,String> attributes)
Setter for the field
attributes . |
void |
setDescription(String description)
Setter for the field
description . |
void |
setExitStatus(int exitStatus)
Setter for the field
exitStatus . |
void |
setFiles(ArrayList<FileMetadata> files)
Setter for the field
files . |
void |
setParameters(String parameters)
Setter for the field
parameters . |
void |
setProcessExitStatus(int processExitStatus)
Setter for the field
processExitStatus . |
void |
setReturnValue(int returnValue)
Setter for the field
returnValue . |
void |
setRunStartTstmp(Date runStartTstmp)
Setter for the field
runStartTstmp . |
void |
setRunStopTstmp(Date runStopTstmp)
Setter for the field
runStopTstmp . |
void |
setStderr(String stderr)
Setter for the field
stderr . |
void |
setStdout(String stdout)
Setter for the field
stdout . |
void |
setUrl(String url)
Setter for the field
url . |
void |
setUrlLabel(String urlLabel)
Setter for the field
urlLabel . |
void |
setVersion(String version)
Setter for the field
version . |
String |
toString() |
public static final int NULL
NULL=-99
public static final int NOTIMPLEMENTED
NOTIMPLEMENTED=-1
public static final int SUCCESS
SUCCESS=0
public static final int PROGRAMFAILED
PROGRAMFAILED=1
public static final int INVALIDPARAMETERS
INVALIDPARAMETERS=2
public static final int DIRECTORYNOTREADABLE
DIRECTORYNOTREADABLE=3
public static final int FILENOTREADABLE
FILENOTREADABLE=4
public static final int FILENOTWRITABLE
FILENOTWRITABLE=5
public static final int RUNTIMEEXCEPTION
RUNTIMEEXCEPTION=6
public static final int INVALIDFILE
INVALIDFILE=7
public static final int METADATAINVALIDIDCHAIN
METADATAINVALIDIDCHAIN=8
public static final int INVALIDARGUMENT
INVALIDARGUMENT=9
public static final int FILENOTEXECUTABLE
FILENOTEXECUTABLE=10
public static final int DIRECTORYNOTWRITABLE
DIRECTORYNOTWRITABLE=11
public static final int FILEEMPTY
FILEEMPTY=12
public static final int SETTINGSFILENOTFOUND
SETTINGSFILENOTFOUND=13
public static final int ENVVARNOTFOUND
ENVVARNOTFOUND=14
public static final int FAILURE
FAILURE=15
public static final int FREEMARKEREXCEPTION
FREEMARKEREXCEPTION=70
public static final int DBCOULDNOTINITIALIZE
DBCOULDNOTINITIALIZE=80
public static final int DBCOULDNOTDISCONNECT
DBCOULDNOTDISCONNECT=81
public static final int SQLQUERYFAILED
SQLQUERYFAILED=82
public static final int STDOUTERR
STDOUTERR=90
public static final int RUNNERERR
RUNNERERR=91
public static final int PROCESSING
PROCESSING=100
public static final int QUEUED
QUEUED=101
public static final int RETURNEDHELPMSG
RETURNEDHELPMSG=110
public static final int INVALIDPLUGIN
INVALIDPLUGIN=120
public static final int UNKNOWN
UNKNOWN=130
protected String stdout
protected String stderr
protected int exitStatus
protected int processExitStatus
protected int returnValue
protected String algorithm
protected String parameters
protected String description
protected String version
protected String url
protected String urlLabel
protected Date runStartTstmp
protected Date runStopTstmp
protected ArrayList<FileMetadata> files
public ReturnValue()
Constructor for ReturnValue.
public ReturnValue(int startExitStatus)
Constructor for ReturnValue.
startExitStatus
- a int.public ReturnValue(ReturnValue.ExitStatus exitStatus)
Constructor for ReturnValue.
exitStatus
- public void setAttributes(Map<String,String> attributes)
Setter for the field attributes
.
attributes
- a Map
object.public Map<String,String> getAttributes()
Getter for the field attributes
.
Map
object.public Date getRunStartTstmp()
Getter for the field runStartTstmp
.
Date
object.public void setRunStartTstmp(Date runStartTstmp)
Setter for the field runStartTstmp
.
runStartTstmp
- a Date
object.public Date getRunStopTstmp()
Getter for the field runStopTstmp
.
Date
object.public void setRunStopTstmp(Date runStopTstmp)
Setter for the field runStopTstmp
.
runStopTstmp
- a Date
object.public int getReturnValue()
Getter for the field returnValue
.
public void setReturnValue(int returnValue)
Setter for the field returnValue
.
returnValue
- a int.public static ReturnValue featureNotImplemented()
featureNotImplemented.
ReturnValue
object.public int getProcessExitStatus()
Getter for the field processExitStatus
.
public void setProcessExitStatus(int processExitStatus)
Setter for the field processExitStatus
.
processExitStatus
- a int.public int getExitStatus()
Getter for the field exitStatus
.
public void setExitStatus(int exitStatus)
Setter for the field exitStatus
.
exitStatus
- a int.public void setStdout(String stdout)
Setter for the field stdout
.
stdout
- a String
object.public void setStderr(String stderr)
Setter for the field stderr
.
stderr
- a String
object.public void setAlgorithm(String algorithm)
Setter for the field algorithm
.
algorithm
- a String
object.public String getDescription()
Getter for the field description
.
String
object.public void setDescription(String description)
Setter for the field description
.
description
- a String
object.public void setVersion(String version)
Setter for the field version
.
version
- a String
object.public String getParameters()
Getter for the field parameters
.
String
object.public void setParameters(String parameters)
Setter for the field parameters
.
parameters
- a String
object.public ArrayList<FileMetadata> getFiles()
Getter for the field files
.
ArrayList
object.public void setFiles(ArrayList<FileMetadata> files)
Setter for the field files
.
files
- a ArrayList
object.public void printAndAppendtoStderr(String errorMessage)
printAndAppendtoStderr.
errorMessage
- a String
object.public void printAndAppendtoStdout(String outMessage)
printAndAppendtoStdout.
outMessage
- a String
object.public void setUrlLabel(String urlLabel)
Setter for the field urlLabel
.
urlLabel
- a String
object.Copyright © 2015 SeqWare. All rights reserved.