com.ibm.rational.test.lt.testgen.core.conversion

Class BasePacketConverter

  • java.lang.Object
    • com.ibm.rational.test.lt.testgen.core.conversion.BasePacketConverter
    • Constructor Detail

      • BasePacketConverter

        public BasePacketConverter()
    • Method Detail

      • getOutputPacketTypes

        public Set<String> getOutputPacketTypes(Set<String> inputPacketTypes)
        This implementation returns the set that was passed as an argument. Implementations may either extend this method and add more packet types, or override and return a different set.
        Specified by:
        getOutputPacketTypes in interface IPacketConverter
        Parameters:
        inputPacketTypes - A set of packet types.
        Returns:
        The set of all the packet types that this converter can output, for each specified input packet type.
      • getContext

        protected final IPacketConverterContext getContext()
        Returns the context of this packet converter.
        Returns:
        the context of this packet converter.
      • writePacket

        public void writePacket(IRecorderPacketReference ref,
                       long minPendingPacketTime)
                         throws IOException
        This implementation sends the packet to this converter output, with no additional transformation. It should usually be overridden. Implementation may invoke the super implementation if the packet needs to be passed along to the output with no conversion.
        Specified by:
        writePacket in interface IPacketReferenceOutputStream
        minPendingPacketTime - The lowest start time of all packets that may be sent to this output after the current one. If all packets are expected to be written sorted by their start timestamp, then this value should be greater or equal than the start timestamp of the current packet.
        Throws:
        IOException
      • dispose

        public void dispose()
        This implementation does nothing. Override if needed.
        Specified by:
        dispose in interface IPacketConverter
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.