Package com.ibm.dbb.build.smf
Class DBBSmfRecord
- java.lang.Object
-
- com.ibm.dbb.build.smf.SmfRecord
-
- com.ibm.dbb.build.smf.DBBSmfRecord
-
public class DBBSmfRecord extends SmfRecord
-
-
Constructor Summary
Constructors Constructor Description DBBSmfRecord()
Create a Dependency Based Build SMF record that will be used for write SMF records.DBBSmfRecord(byte[] data)
Create a Dependency Based Build SMF record object to map data read using the SMF record dump program.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getBuild()
Returns the DBB build number stored in the DBB SMF recordbyte
getMod()
Returns the Mod number stored in the DBB SMF recordjava.lang.String
getProductFeature()
Returns the Product Feature stored in the DBB SMF recordjava.lang.String
getProductId()
Returns the Product Id stored in the DBB SMF recordjava.lang.String
getProductName()
Returns the Product Name stored in the DBB SMF recordbyte
getRelease()
Returns the release number stored in the DBB SMF recordjava.util.Date
getTimestamp()
Returns the timestamp stored in the DBB SMF recordjava.lang.String
getUserid()
Returns the userid stored in the DBB SMF record.byte
getVersion()
Returns the Version number stored in the DBB SMF recordvoid
setProductFeature(java.lang.String productFeature)
Override the default Product Feature namevoid
setProductId(java.lang.String productId)
Override the default Product Idvoid
setProductName(java.lang.String productName)
Override the default product namejava.lang.String
toString()
void
write()
Move DBB SMF record information into buffer and write the SMF record.-
Methods inherited from class com.ibm.dbb.build.smf.SmfRecord
getDate, getFlag, getHeader, getHeaderLength, getLength, getRecord, getSegment, getSID, getSubType, getTime, getType, getWID, setWID
-
-
-
-
Constructor Detail
-
DBBSmfRecord
public DBBSmfRecord()
Create a Dependency Based Build SMF record that will be used for write SMF records. Define JVM property, DBB_SMFWRITE_ENABLED=true, to have a DBB SMF record automatically written during the running of a build script.
-
DBBSmfRecord
public DBBSmfRecord(byte[] data)
Create a Dependency Based Build SMF record object to map data read using the SMF record dump program.- Parameters:
data
- buffer of data from SMF record dump program- Throws:
java.lang.IllegalArgumentException
- if type and subtype in buffer are not consistent with the DBB SMF record type and subtype.
-
-
Method Detail
-
write
public void write() throws BuildException
Move DBB SMF record information into buffer and write the SMF record. NOTE: The caller of this method must be permitted to the BPX.SMF facility class profile.- Throws:
BuildException
- an exception occurred
-
getProductName
public java.lang.String getProductName()
Returns the Product Name stored in the DBB SMF record- Returns:
- productName
-
setProductName
public void setProductName(java.lang.String productName)
Override the default product name- Parameters:
productName
- product name
-
getProductFeature
public java.lang.String getProductFeature()
Returns the Product Feature stored in the DBB SMF record- Returns:
- productFeature
-
setProductFeature
public void setProductFeature(java.lang.String productFeature)
Override the default Product Feature name- Parameters:
productFeature
- product feature
-
getProductId
public java.lang.String getProductId()
Returns the Product Id stored in the DBB SMF record- Returns:
- product Id
-
setProductId
public void setProductId(java.lang.String productId)
Override the default Product Id- Parameters:
productId
- product Id
-
getVersion
public byte getVersion()
Returns the Version number stored in the DBB SMF record- Returns:
- version
-
getRelease
public byte getRelease()
Returns the release number stored in the DBB SMF record- Returns:
- release
-
getMod
public byte getMod()
Returns the Mod number stored in the DBB SMF record- Returns:
- mod
-
getTimestamp
public java.util.Date getTimestamp()
Returns the timestamp stored in the DBB SMF record- Returns:
- timestamp
-
getUserid
public java.lang.String getUserid()
Returns the userid stored in the DBB SMF record. This is the userid used to store the SMF record.- Returns:
- userid
-
getBuild
public short getBuild()
Returns the DBB build number stored in the DBB SMF record- Returns:
- build
-
-