Package com.ibm.dbb.build.report.records
Class CopyToUnixRecord
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- com.ibm.dbb.build.report.records.CopyToUnixRecord
-
public class CopyToUnixRecord extends Record
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_COMMAND
static java.lang.String
PROP_DEPLOY_TYPE
static java.lang.String
PROP_OPTIONS
static java.lang.String
PROP_OUTPUT
static java.lang.String
PROP_RC
static java.lang.String
PROP_ROOT_DIR
static java.lang.String
PROP_SOURCE
static java.lang.String
PROP_TARGET
-
Constructor Summary
Constructors Constructor Description CopyToUnixRecord()
Construct a record with a default IDCopyToUnixRecord(java.lang.String id)
Construct a record with the supplied ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getAdditionalOptions()
Returns the additional options for the unix copy.java.lang.String
getCommand()
Return the command "UNIXCOPY" to be stored in the build report.java.lang.String
getDeployType()
Get the deploy type.java.lang.String
getFile()
Gets the origin file of this copy recordint
getRc()
Get the rc for this record.java.lang.String
getRootDir()
Returns the root directory used for the unix copy.java.lang.String
getSourcePath()
java.lang.String
getTargetPath()
boolean
isOutput()
Get the output flag.CopyToUnixRecord
parse(com.google.gson.JsonObject jsonObject)
Create the record from JSON.void
setAdditionalOptions(java.util.List<java.lang.String> options)
Sets the additional options for the unix copy.void
setCommand(java.lang.String command)
Set the command "UNIXCOPY" to be stored in the build report.void
setDeployType(java.lang.String deployType)
Set the deploy type.void
setOutput(boolean output)
Set the output flag.void
setRc(int rc)
void
setRootDir(java.lang.String rootDir)
Sets the root directory used for the unix copy.void
setSource(java.lang.String sourceFile)
void
setTarget(java.lang.String targetFile)
com.google.gson.JsonObject
toJSON()
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_SOURCE
public static final java.lang.String PROP_SOURCE
- See Also:
- Constant Field Values
-
PROP_TARGET
public static final java.lang.String PROP_TARGET
- See Also:
- Constant Field Values
-
PROP_ROOT_DIR
public static final java.lang.String PROP_ROOT_DIR
- See Also:
- Constant Field Values
-
PROP_OUTPUT
public static final java.lang.String PROP_OUTPUT
- See Also:
- Constant Field Values
-
PROP_DEPLOY_TYPE
public static final java.lang.String PROP_DEPLOY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDeployType
public java.lang.String getDeployType()
Get the deploy type.- Returns:
- the deploy type.
-
setDeployType
public void setDeployType(java.lang.String deployType)
Set the deploy type.- Parameters:
deployType
- the deploy type.
-
isOutput
public boolean isOutput()
Get the output flag.- Returns:
- the output flag.
-
setOutput
public void setOutput(boolean output)
Set the output flag.- Parameters:
output
- the output flag.
-
getRc
public int getRc()
Get the rc for this record.- Returns:
- the rc of the record
-
setRc
public void setRc(int rc)
-
getFile
public java.lang.String getFile()
Gets the origin file of this copy record
-
getSourcePath
public java.lang.String getSourcePath()
-
setSource
public void setSource(java.lang.String sourceFile)
-
getTargetPath
public java.lang.String getTargetPath()
-
setTarget
public void setTarget(java.lang.String targetFile)
-
getCommand
public java.lang.String getCommand()
Return the command "UNIXCOPY" to be stored in the build report.- Returns:
- the command "UNIXCOPY" to be stored in the build report.
-
setCommand
public void setCommand(java.lang.String command)
Set the command "UNIXCOPY" to be stored in the build report.- Parameters:
command
- the command "UNIXCOPY" to be stored in the build report.
-
setAdditionalOptions
public void setAdditionalOptions(java.util.List<java.lang.String> options)
Sets the additional options for the unix copy.
-
getAdditionalOptions
public java.util.List<java.lang.String> getAdditionalOptions()
Returns the additional options for the unix copy.
-
setRootDir
public void setRootDir(java.lang.String rootDir)
Sets the root directory used for the unix copy.- Parameters:
rootDir
-
-
getRootDir
public java.lang.String getRootDir()
Returns the root directory used for the unix copy. Can be used to calculate absolute paths if the source and target file paths are relative (typical).
-
toJSON
public com.google.gson.JsonObject toJSON()
Description copied from class:Record
Returns the record in JSON format.
-
parse
public CopyToUnixRecord parse(com.google.gson.JsonObject jsonObject) throws ParseException
Description copied from class:Record
Create the record from JSON.- Overrides:
parse
in classRecord
- Parameters:
jsonObject
- The object in JSON to be parsed.- Returns:
- the record representing by the supplied JSON contents.
- Throws:
ParseException
-
-