com.ibm.rational.test.lt.trace

Class RecorderMsg

    • Constructor Detail

      • RecorderMsg

        public RecorderMsg()
        Class constructor.
      • RecorderMsg

        public RecorderMsg(String protocol,
                   String vendor,
                   String version,
                   int type)
        Class constructor specifying various properties.
        Parameters:
        protocol - protocol name (example: "HTTP")
        vendor - vendor name (example: "IBM")
        version - version string (example: "6.1.2.0")
        type - integer reflecting the type of information associated with this msg
      • RecorderMsg

        public RecorderMsg(String protocol,
                   String vendor,
                   String version,
                   int type,
                   byte[] bData)
        Class constructor specifying various properties.
        Parameters:
        protocol - protocol name (example: "HTTP")
        vendor - vendor name (example: "IBM")
        version - version string (example: "6.1.2.0")
        type - integer reflecting the type of information associated with this msg
        bData - binary data associated with this msg
      • RecorderMsg

        public RecorderMsg(String protocol,
                   String vendor,
                   String version,
                   int type,
                   String sData)
        Class constructor specifying various properties.
        Parameters:
        protocol - protocol name (example: "HTTP")
        vendor - vendor name (example: "IBM")
        version - version string (example: "6.1.2.0")
        type - integer reflecting the type of information associated with this msg
        sData - string data associated with this msg
    • Method Detail

      • getType

        public int getType()
        Gets the type of information associated with this msg. This value can be used to categorize the msg as INFO, WARNING, etc. The actual value used here is arbitrary, and is defined by the 'contract' between a given recorder/testgen-protocol-handler pair. The values carried here are transparent to lt.trace.
        Returns:
        integer reflecting the type of information associated with this msg
      • setType

        public void setType(int type)
        Sets the type of information associated with this msg. This value can be used to categorize the msg as INFO, WARNING, etc. The actual value used here is arbitrary, and is defined by the 'contract' between a given recorder/testgen-protocol-handler pair. The values carried here are transparent to lt.trace.
        Parameters:
        type - integer reflecting the type of information associated with this msg
      • getBytesLength

        public int getBytesLength()
        Gets the length of the (optional) binary data associated with this msg.
        Returns:
        the length of the binary data, or zero
      • getBytes

        public byte[] getBytes()
        Gets the (optional) binary data associated with this msg.
        Returns:
        the binary data
      • setBytes

        public void setBytes(byte[] bData)
        Sets the (optional) binary data associated with this msg.
        Parameters:
        bData - the binary data
      • getString

        public String getString()
        Gets the (optional) string data associated with this msg.
        Returns:
        the string data
      • setString

        public void setString(String sData)
        Sets the (optional) string data associated with this msg.
        Parameters:
        sData - the string data
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.