Package com.ibm.dbb.build.smf
Class DBBSmfRecord
- java.lang.Object
-
- com.ibm.dbb.build.smf.SmfRecord
-
- com.ibm.dbb.build.smf.Smf122S2Record
-
- com.ibm.dbb.build.smf.DBBSmfRecord
-
- Direct Known Subclasses:
AuditSmfRecord
public class DBBSmfRecord extends Smf122S2Record
-
-
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 boolean
equals(java.lang.Object obj)
short
getBuild()
Returns the DBB build number stored in the DBB SMF recordbyte
getFixPack()
Returns the fix pack 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()
-
Methods inherited from class com.ibm.dbb.build.smf.Smf122S2Record
write
-
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
-
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
-
getFixPack
public byte getFixPack()
Returns the fix pack number stored in the DBB SMF record- Returns:
- release
-
getTimestamp
public java.util.Date getTimestamp()
Returns the timestamp stored in the DBB SMF record- Returns:
- Date
-
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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classSmf122S2Record
-
-