com.ibm.rational.test.lt.trace

Class UDMethodBaseMsg

    • Constructor Detail

      • UDMethodBaseMsg

        public UDMethodBaseMsg()
        Class constructor.
      • UDMethodBaseMsg

        public UDMethodBaseMsg(String protocol,
                       String vendor,
                       String version)
        Class constructor specifying various properties.
        Parameters:
        protocol - protocol name (example: "HTTP")
        vendor - vendor name (example: "IBM")
        version - version string (example: "6.1.2.0")
      • UDMethodBaseMsg

        public UDMethodBaseMsg(String protocol,
                       String vendor,
                       String version,
                       int id)
        Class constructor specifying various properties.
        Parameters:
        protocol - protocol name (example: "HTTP")
        vendor - vendor name (example: "IBM")
        version - version string (example: "6.1.2.0")
        id - the methodDef ID associated with this User Defined msg (example: 1, 2, 3, etc.)
    • Method Detail

      • getMethodDefID

        public int getMethodDefID()
        Gets the methodDef ID associated with this msg.
        Returns:
        integer reflecting the methodDef ID associated with this msg
      • setMethodDefID

        public void setMethodDefID(int id)
        Sets the methodDef ID associated with this msg. This value will be subsequently used to associate UDMethodEntry|Exit|InvocationMsg objects with this methodDef. The actual value used here is arbitrary, but generally, a recorder should start these values at 1, and increment by 1 for each methodDef defined.
        Parameters:
        id - integer reflecting the methodDef ID associated with this msg
      • setParameterString

        public void setParameterString(int ndx,
                              String val)
                                throws TraceException
        Sets the value of the specified parameter.
        Parameters:
        ndx - the zero-based index of the parameter
        val - the string to set the paramater to
        Throws:
        TraceException - if the specified parameter index is out of range
      • setParameterBytes

        public void setParameterBytes(int ndx,
                             byte[] val)
                               throws TraceException
        Sets the value of the specified parameter.
        Parameters:
        ndx - the zero-based index of the parameter
        val - the byte array to set the paramater to
        Throws:
        TraceException - if the specified parameter index is out of range
      • getParameterString

        public String getParameterString(int ndx)
                                  throws TraceException
        Gets the value of the specified parameter.
        Parameters:
        ndx - the zero-based index of the parameter
        Returns:
        the string contained in the paramater
        Throws:
        TraceException - if the specified parameter index is out of range
      • getParameterBytes

        public byte[] getParameterBytes(int ndx)
                                 throws TraceException
        Gets the value of the specified parameter.
        Parameters:
        ndx - the zero-based index of the parameter
        Returns:
        the byte array contained in the paramater
        Throws:
        TraceException - if the specified parameter index is out of range
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.