Package com.ibm.dbb.build.report.records
Class CopyToHFSRecord
- java.lang.Object
-
- com.ibm.dbb.build.report.records.Record
-
- com.ibm.dbb.build.report.records.CopyToHFSRecord
-
public class CopyToHFSRecord extends Record
The record to store information about the command copying files to HFS.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_DESTINATION
static java.lang.String
PROP_MODE
static java.lang.String
PROP_SOURCE
-
Constructor Summary
Constructors Constructor Description CopyToHFSRecord()
Construct a record with a default IDCopyToHFSRecord(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.io.File
getDestination()
The USS file to copy the data set to.DBBConstants.CopyMode
getMode()
Return the copy mode.java.lang.String
getSource()
Returns the data set to copy from.CopyToHFSRecord
parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.void
setDestination(java.io.File destination)
Set the USS file to copy the data set to.void
setMode(DBBConstants.CopyMode mode)
Set the copy mode.void
setSource(java.lang.String source)
Set the data set to copy from.com.google.gson.JsonObject
toJSON()
Returns the record in JSON format.
-
-
-
Field Detail
-
PROP_SOURCE
public static final java.lang.String PROP_SOURCE
- See Also:
- Constant Field Values
-
PROP_DESTINATION
public static final java.lang.String PROP_DESTINATION
- See Also:
- Constant Field Values
-
PROP_MODE
public static final java.lang.String PROP_MODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
public java.lang.String getSource()
Returns the data set to copy from.- Returns:
- the data set to copy from.
-
setSource
public void setSource(java.lang.String source)
Set the data set to copy from.- Parameters:
source
- the data set to copy from.
-
getDestination
public java.io.File getDestination()
The USS file to copy the data set to.- Returns:
- the USS file to copy the data set to.
-
setDestination
public void setDestination(java.io.File destination)
Set the USS file to copy the data set to.- Parameters:
destination
- the USS file to copy the data set to.
-
getMode
public DBBConstants.CopyMode getMode()
Return the copy mode. Possible values are:TEXT, BINARY, LOAD
.- Returns:
- mode
-
setMode
public void setMode(DBBConstants.CopyMode mode)
Set the copy mode. Possible values are:TEXT, BINARY, LOAD
.- Parameters:
mode
- the copy mode
-
toJSON
public com.google.gson.JsonObject toJSON()
Returns the record in JSON format.
-
parse
public CopyToHFSRecord parse(com.google.gson.JsonObject jsonObj)
Create the record from JSON.
-
-