public class ExecuteRecord extends Record
Modifier and Type | Class and Description |
---|---|
static class |
ExecuteRecord.OutputInfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_COMMAND |
static java.lang.String |
PROP_DATASET |
static java.lang.String |
PROP_DATASETS |
static java.lang.String |
PROP_DEPLOY_TYPE |
static java.lang.String |
PROP_FILE |
static java.lang.String |
PROP_LOGS |
static java.lang.String |
PROP_OPTIONS |
static java.lang.String |
PROP_OUTPUTS |
static java.lang.String |
PROP_RC |
Constructor and Description |
---|
ExecuteRecord()
Construct a record with a default ID
|
ExecuteRecord(java.lang.String id)
Construct a record with the supplied ID.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataset(java.lang.String dataset)
Add the data set to be stored in the build report.
|
void |
addLogFile(java.io.File logFile)
Add the log file associated with the command.
|
void |
addOutput(java.lang.String dataset,
java.lang.String deployType)
Add the output to be stored in the build report.
|
java.lang.String |
getCommand()
Return the command to be stored in the build report.
|
java.util.List<java.lang.String> |
getDatasets()
Return a list of data sets being stored in the build report.
|
java.lang.String |
getFile()
Return the file associated with the command.
|
java.util.List<java.io.File> |
getLogFiles()
Return a list of the log files associated with the command.
|
java.lang.String |
getOptions()
Return the options used by the command to be stored in the build report.
|
java.util.List<ExecuteRecord.OutputInfo> |
getOutputs()
Return the list of outputs being stored in the build report.
|
int |
getRc()
Return the RC associated with the command.
|
ExecuteRecord |
parse(com.ibm.json.java.JSONObject jsonObj)
Create the record from JSON.
|
void |
setCommand(java.lang.String command)
Set the command to be stored in the build report.
|
void |
setFile(java.lang.String file)
Set the file associated with the command to be stored in the build report.
|
void |
setOptions(java.lang.String options)
Set the options used by the command to be stored in the build report.
|
void |
setRc(int rc)
Set the RC associated with the command.
|
com.ibm.json.java.JSONObject |
toJSON()
Returns the record in JSON format.
|
public static final java.lang.String PROP_COMMAND
public static final java.lang.String PROP_OPTIONS
public static final java.lang.String PROP_RC
public static final java.lang.String PROP_FILE
public static final java.lang.String PROP_DATASETS
public static final java.lang.String PROP_OUTPUTS
public static final java.lang.String PROP_LOGS
public static final java.lang.String PROP_DATASET
public static final java.lang.String PROP_DEPLOY_TYPE
public ExecuteRecord()
public ExecuteRecord(java.lang.String id)
id
- the id of the record.public java.lang.String getCommand()
public void setCommand(java.lang.String command)
command
- the command to be stored in the build report.public java.lang.String getOptions()
public void setOptions(java.lang.String options)
options
- the options used by the command.public int getRc()
public void setRc(int rc)
rc
- the RC associated with the command.public void addOutput(java.lang.String dataset, java.lang.String deployType)
dataset
- the output to be stored in the build report.deployType
- the output to be stored in the build report.public java.util.List<ExecuteRecord.OutputInfo> getOutputs()
public void setFile(java.lang.String file)
file
- the file associated with the command.public java.lang.String getFile()
public void addDataset(java.lang.String dataset)
dataset
- the data set to be stored in the build report.public java.util.List<java.lang.String> getDatasets()
public void addLogFile(java.io.File logFile)
logFile
- the log file associated with the command.public java.util.List<java.io.File> getLogFiles()
public com.ibm.json.java.JSONObject toJSON()
public ExecuteRecord parse(com.ibm.json.java.JSONObject jsonObj) throws ParseException
parse
in class Record
jsonObj
- The object in JSON to be parsed.ParseException
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.