public class SmfRecord
extends java.lang.Object
Constructor and Description |
---|
SmfRecord(byte type)
Create an object representing an SMF record header of a particular SMF
type.
|
SmfRecord(byte[] data,
boolean bReadData)
Create an object representing an SMF record header using a data buffer.
|
SmfRecord(byte type,
short subtype)
Create an object representing an SMF record header of a particular SMF
type and subtype.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getDate()
Returns SMF record header date.
|
byte |
getFlag()
Returns SMF record header flag.
|
byte[] |
getHeader()
Returns copy of the byte array containing only the SMF record header.
|
int |
getHeaderLength()
Returns length of the SMF record header.
|
int |
getLength()
Returns the length of the SMF record
|
byte[] |
getRecord()
Returns a copy of the byte array containing the SMF record data.
|
java.lang.String |
getSegment()
Returns SMF record header segment.
|
java.lang.String |
getSID()
Returns SMF record header system identification.
|
short |
getSubType()
Returns SMF record header subtype
|
byte[] |
getTime()
Returns SMF record header time.
|
byte |
getType()
Returns SMF record header type.
|
java.lang.String |
getWID()
Returns SMF record header subsystem identification.
|
void |
setWID(java.lang.String wid)
Set the SMF record header subsystem identification.
|
java.lang.String |
toString() |
public SmfRecord(byte type)
type
- The SMF record typepublic SmfRecord(byte type, short subtype)
type
- The SMF record typesubtype
- The SMF record subtypepublic SmfRecord(byte[] data, boolean bReadData)
data
- A required parameter. A byte array containing SMF data usually
read using the SMF record dump programs.bReadData
- Indicates that the record was read from SMF dump program and
is missing record length and segment descriptor (4 bytes) at
the beginning of the buffer.java.security.InvalidParameterException
- if data is null or byte array is shorter than a standard SMF
header with subtypes (24 bytes).public byte[] getRecord()
public int getLength()
public byte[] getHeader()
public int getHeaderLength()
public byte getType()
public byte getFlag()
public byte[] getTime()
public byte[] getDate()
public java.lang.String getSID()
public java.lang.String getSegment()
public java.lang.String getWID()
public void setWID(java.lang.String wid)
wid
- subsystem identificationpublic short getSubType()
public java.lang.String toString()
toString
in class java.lang.Object
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.