IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.recorder.core.session
Interface IRecordingSessionProducer


public interface IRecordingSessionProducer

This interface allows the caller to directly create a recording session file, without actually launching a recorder session. It is used in various scenarios, like the upgrade process from a .recmodel file to a .recsession file.


Method Summary
 RecordingSessionConfiguration getConfiguration()
          Returns the (initially empty) recording session configuration of the session to create.
 IPacketOutputStream getPacketWriter()
          Returns the packet output stream.
 IFile[] getProducedFiles()
          Returns the files that were produced by this producer.
 void setConfiguration(RecordingSessionConfiguration configuration)
          Replaces the session configuration with the specified one.
 void setInitialTime(long initialTime)
          Sets the recording initial time, expressed as milliseconds since the time 00:00:00 UTC on January 1, 1970.
 

Method Detail

getConfiguration

RecordingSessionConfiguration getConfiguration()
Returns the (initially empty) recording session configuration of the session to create. This configuration is to be filled by the caller.

Returns:

setConfiguration

void setConfiguration(RecordingSessionConfiguration configuration)
Replaces the session configuration with the specified one.

Parameters:
configuration - A recording configuration. This configuration may still be modified until the writer associated to this producer is closed.

getPacketWriter

IPacketOutputStream getPacketWriter()
                                    throws IOException
Returns the packet output stream. This stream must be filled and closed by the caller.

Returns:
the packet output stream
Throws:
IOException

setInitialTime

void setInitialTime(long initialTime)
Sets the recording initial time, expressed as milliseconds since the time 00:00:00 UTC on January 1, 1970.

Parameters:
initialTime - the recording initial time, expressed as milliseconds since the time 00:00:00 UTC on January 1, 1970.

getProducedFiles

IFile[] getProducedFiles()
Returns the files that were produced by this producer. This method will reveal all files it has created only if it is called after the packet writer has been closed.

Returns:
the files that were produced by this producer.

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.