Package com.ibm.dbb.build.report.records
Class ExecuteRecord
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- com.ibm.dbb.build.report.records.ExecuteRecord
-
public class ExecuteRecord extends Record
Create a record to store information about executing a command.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecuteRecord.OutputInfo
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_COMMANDstatic java.lang.StringPROP_DATASETstatic java.lang.StringPROP_DATASETSstatic java.lang.StringPROP_DEPLOY_TYPEstatic java.lang.StringPROP_FILEstatic java.lang.StringPROP_LOGSstatic java.lang.StringPROP_OPTIONSstatic java.lang.StringPROP_OUTPUTSstatic java.lang.StringPROP_RC
-
Constructor Summary
Constructors Constructor Description ExecuteRecord()Construct a record with a default IDExecuteRecord(java.lang.String id)Construct a record with the supplied ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataset(java.lang.String dataset)Add the data set to be stored in the build report.voidaddLogFile(java.io.File logFile)Add the log file associated with the command.voidaddOutput(java.lang.String dataset, java.lang.String deployType)Add the output to be stored in the build report.java.lang.StringgetCommand()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.StringgetFile()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.StringgetOptions()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.intgetRc()Return the RC associated with the command.ExecuteRecordparse(com.google.gson.JsonObject jsonObj)Create the record from JSON.voidsetCommand(java.lang.String command)Set the command to be stored in the build report.voidsetFile(java.lang.String file)Set the file associated with the command to be stored in the build report.voidsetOptions(java.lang.String options)Set the options used by the command to be stored in the build report.voidsetRc(int rc)Set the RC associated with the command.com.google.gson.JsonObjecttoJSON()Returns the record in JSON format.
-
-
-
Field Detail
-
PROP_COMMAND
public static final java.lang.String PROP_COMMAND
- See Also:
- Constant Field Values
-
PROP_OPTIONS
public static final java.lang.String PROP_OPTIONS
- See Also:
- Constant Field Values
-
PROP_RC
public static final java.lang.String PROP_RC
- See Also:
- Constant Field Values
-
PROP_FILE
public static final java.lang.String PROP_FILE
- See Also:
- Constant Field Values
-
PROP_DATASETS
public static final java.lang.String PROP_DATASETS
- See Also:
- Constant Field Values
-
PROP_OUTPUTS
public static final java.lang.String PROP_OUTPUTS
- See Also:
- Constant Field Values
-
PROP_LOGS
public static final java.lang.String PROP_LOGS
- See Also:
- Constant Field Values
-
PROP_DATASET
public static final java.lang.String PROP_DATASET
- See Also:
- Constant Field Values
-
PROP_DEPLOY_TYPE
public static final java.lang.String PROP_DEPLOY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommand
public java.lang.String getCommand()
Return the command to be stored in the build report.- Returns:
- the command to be stored in the build report.
-
setCommand
public void setCommand(java.lang.String command)
Set the command to be stored in the build report.- Parameters:
command- the command to be stored in the build report.
-
getOptions
public java.lang.String getOptions()
Return the options used by the command to be stored in the build report.- Returns:
- the options used by the command.
-
setOptions
public void setOptions(java.lang.String options)
Set the options used by the command to be stored in the build report.- Parameters:
options- the options used by the command.
-
getRc
public int getRc()
Return the RC associated with the command.- Returns:
- the RC associated with the command.
-
setRc
public void setRc(int rc)
Set the RC associated with the command.- Parameters:
rc- the RC associated with the command.
-
addOutput
public void addOutput(java.lang.String dataset, java.lang.String deployType)Add the output to be stored in the build report.- Parameters:
dataset- the output to be stored in the build report.deployType- the output to be stored in the build report.
-
getOutputs
public java.util.List<ExecuteRecord.OutputInfo> getOutputs()
Return the list of outputs being stored in the build report.- Returns:
- the list of outputs being stored in the build report.
-
setFile
public void setFile(java.lang.String file)
Set the file associated with the command to be stored in the build report.- Parameters:
file- the file associated with the command.
-
getFile
public java.lang.String getFile()
Return the file associated with the command.- Returns:
- the file associated with the command.
-
addDataset
public void addDataset(java.lang.String dataset)
Add the data set to be stored in the build report.- Parameters:
dataset- the data set to be stored in the build report.
-
getDatasets
public java.util.List<java.lang.String> getDatasets()
Return a list of data sets being stored in the build report.- Returns:
- the list of data sets being stored in the build report.
-
addLogFile
public void addLogFile(java.io.File logFile)
Add the log file associated with the command.- Parameters:
logFile- the log file associated with the command.
-
getLogFiles
public java.util.List<java.io.File> getLogFiles()
Return a list of the log files associated with the command.- Returns:
- the list of the log files associated with the command.
-
toJSON
public com.google.gson.JsonObject toJSON()
Returns the record in JSON format.
-
parse
public ExecuteRecord parse(com.google.gson.JsonObject jsonObj) throws ParseException
Create the record from JSON.- Overrides:
parsein classRecord- Parameters:
jsonObj- The object in JSON to be parsed.- Returns:
- the record representing by the supplied JSON contents.
- Throws:
ParseException
-
-