com.ibm.dbb.build.smf

Class DBBSmfRecord



  • public class DBBSmfRecord
    extends SmfRecord
    • Constructor Summary

      Constructors 
      Constructor and 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.
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class SmfRecord

<IBM Copyright © 2018 IBM Corp. All Rights Reserved.