Class Smf2GroupRecord


public final class Smf2GroupRecord extends SmfRecord
Mapping for SMF type 2 Group record.

Typically you would obtain Smf2GroupRecords by reading SmfRecords and using

new Smf2GroupRecord(SmfRecord)

to create the specialized record after determining the record type and subtype.

  • Constructor Details

    • Smf2GroupRecord

      public Smf2GroupRecord(byte[] data)
      Constructs an Smf2Record from the specified byte array.
      Parameters:
      data - a byte array containing the SMF record data
    • Smf2GroupRecord

      public Smf2GroupRecord(SmfRecord record)
      Constructs a new Smf2Record from an existing SMF record. The 2 records share the same data byte array.
      Parameters:
      record - an existing SMF record
  • Method Details

    • from

      public static Smf2GroupRecord from(SmfRecord record)
      Constructs a new Smf2GroupRecord from an existing SMF record. The 2 records share the same data byte array.
      Parameters:
      record - an existing SMF record
    • from

      public static Smf2GroupRecord from(byte[] data)
      Constructs an Smf2GroupRecord from the specified byte array.
      Parameters:
      data - a byte array containing the SMF record data
    • smf2glen

      public int smf2glen()
      SMF2GLEN value.
      Returns:
      int SMF2GLEN value
    • smf2gseg

      public int smf2gseg()
      SMF2GSEG value.
      Returns:
      int SMF2GSEG value
    • smf2gflg

      public int smf2gflg()
      SMF2GFLG value.
      Returns:
      int SMF2GFLG value
    • smf2grty

      public int smf2grty()
      SMF2GRTY value.
      Returns:
      int SMF2GRTY value
    • smf2gtme

      public LocalTime smf2gtme()
      SMF2GTME as a LocalTime.
      Returns:
      LocalTime SMF2GTME Time
      See Also:
    • smf2gtmeRawValue

      public long smf2gtmeRawValue()
      SMF2GTME raw value
      Returns:
      long SMF2GTME value
    • smf2gdte

      public LocalDate smf2gdte()
      SMF2GDTE as a LocalDate.
      Returns:
      LocalDate SMF2GDTE Date
      See Also:
    • smf2gdteRawValue

      public int smf2gdteRawValue()
      SMF2GDTE raw value.
      Returns:
      int SMF2GDTE value
    • smf2gsid

      public String smf2gsid()
      SMF2GSID value.
      Returns:
      String SMF2GSID value
    • smf2gwid

      public String smf2gwid()
      SMF2GWID value.
      Returns:
      String SMF2GWID value
    • smf2gstp

      public int smf2gstp()
      SMF2GSTP value.
      Returns:
      int SMF2GSTP value
    • smf2grsid

      public String smf2grsid()
      SMF2GRSID value.
      Returns:
      String SMF2GRSID value
    • smf2gflg2

      public int smf2gflg2()
      SMF2GFLG2 value.
      Returns:
      int SMF2GFLG2 value
    • firstGroup

      public boolean firstGroup()
      Return true if FIRSTGROUP bit in smf2gflg2() is set.
      Returns:
      boolean FIRSTGROUP bit is set in smf2gflg2()

      FIRSTGROUP = 0x80

    • groupHasSubtype

      public boolean groupHasSubtype()
      Return true if GROUPHASSUBTYPE bit in smf2gflg2() is set.
      Returns:
      boolean GROUPHASSUBTYPE bit is set in smf2gflg2()

      GROUPHASSUBTYPE = 0x40

    • typeInSmf2grtypx

      public boolean typeInSmf2grtypx()
      Return true if this group type is in SMF2GRTYPX.
      Returns:
      boolean SMF2GRTYPX bit is set in smf2gflg2()

      SMF2GRTYPX = 0x20

    • hasOA55526

      public boolean hasOA55526()
      Return true if this record indicates that the fix for OA55526 was applied.
      Returns:
      boolean the 0x10 bit is set in smf2gflg2()
    • hasSelfDefiningSection

      public boolean hasSelfDefiningSection()
      Return true if this record has a self defining section.
      Returns:
      boolean the 0x08 bit is set in smf2gflg2()
    • groupRecordType

      public int groupRecordType()
      SMF2GRTYPE or SMF2GRTYPX value. Checks the bit to determine whether the value is in SMF2GRTYPE or SMF2GRTYPX and returns the appropriate value.
      Returns:
      int Group Record Type
    • smf2grtype

      @Deprecated public int smf2grtype()
      Deprecated.
      use groupRecordType() instead.
      SMF2GRTYPE value. This field is not used in z/OS 2.3 and above. Use groupRecordType() to return SMF2GRTYPE or SMF2GRTYPX depending on the flag or smf2grtypx() for z/OS 2.3+
      Returns:
      int SMF2GRTYPE value
    • smf2gstype

      public int smf2gstype()
      SMF2GSTYPE value.
      Returns:
      int SMF2GSTYPE value
    • smf2gftme

      public LocalTime smf2gftme()
      SMF2GFTME as a LocalTime.
      Returns:
      LocalTime SMF2GFTME Time
      See Also:
    • smf2gftmeRawValue

      public long smf2gftmeRawValue()
      SMF2GFTME raw value
      Returns:
      long SMF2GFTME value
    • smf2gfdte

      public LocalDate smf2gfdte()
      SMF2GFDTE as a LocalDate.
      Returns:
      LocalDate SMF2GFDTE Date
      See Also:
    • smf2gfdteRawValue

      public int smf2gfdteRawValue()
      SMF2GFDTE raw value.
      Returns:
      int SMF2GFDTE value
    • smf2gcnt

      public long smf2gcnt()
      SMF2GCNT value.
      Returns:
      long SMF2GCNT value
    • smf2ghashmeth

      public int smf2ghashmeth()
      SMF2GHASHMETH value.
      Returns:
      int SMF2GHASHMETH value
    • smf2ghashmethSha1

      public boolean smf2ghashmethSha1()
      Return true if SHA1 bit in smf2ghashmeth() is set.
      Returns:
      boolean SHA1 bit is set in smf2ghashmeth()

      SHA1 = 0x80

    • smf2ghashmethSha256

      public boolean smf2ghashmethSha256()
      Return true if SHA256 bit in smf2ghashmeth() is set.
      Returns:
      boolean SHA256 bit is set in smf2ghashmeth()

      SHA256 = 0x40

    • smf2ghashmethSha384

      public boolean smf2ghashmethSha384()
      Return true if SHA384 bit in smf2ghashmeth() is set.
      Returns:
      boolean SHA384 bit is set in smf2ghashmeth()

      SHA384 = 0x20

    • smf2ghashmethSha512

      public boolean smf2ghashmethSha512()
      Return true if SHA512 bit in smf2ghashmeth() is set.
      Returns:
      boolean SHA512 bit is set in smf2ghashmeth()

      SHA512 = 0x10

    • smf2gsigtype

      public int smf2gsigtype()
      SMF2GSIGTYPE value.
      Returns:
      int SMF2GSIGTYPE value
    • smf2gsigtypeRsa

      public boolean smf2gsigtypeRsa()
      Return true if RSA bit in smf2gsigtype() is set.
      Returns:
      boolean RSA bit is set in smf2gsigtype()

      RSA = 0x80

    • smf2gsigtypeEcdsa

      public boolean smf2gsigtypeEcdsa()
      Return true if ECDSA bit in smf2gsigtype() is set.
      Returns:
      boolean ECDSA bit is set in smf2gsigtype()

      ECDSA = 0x40

    • smf2gtokenname

      public String smf2gtokenname()
      SMF2GTOKENNAME value.
      Returns:
      String SMF2GTOKENNAME value
    • smf2grtypx

      public int smf2grtypx()
      SMF2GRTYPX value.
      Returns:
      int SMF2GRTYPX value
    • smf2gsiglen

      public int smf2gsiglen()
      SMF2GSIGLEN value.
      Returns:
      int SMF2GSIGLEN value
    • smf2gsig

      public byte[] smf2gsig()
      SMF2GSIG data.
      Returns:
      byte[] SMF2GSIG data
    • selfDefiningSection

      public GroupSelfDefiningSection selfDefiningSection()
      Get the self defining section for this record, or null if there is no self defining section
      Returns:
      GroupSelfDefiningSection the self defining section or null
    • alternateSignatures

      public List<GroupAlternateSignature> alternateSignatures()
      Get a List containing Alternate Signatures from the record
      Returns:
      a list of GroupAlternateSignature (possibly empty)