public interface IMsgUpgrader
com.ibm.rational.test.lt.recorder.compatibility.recmodelUpgrader.exsd
.
An upgrader is given one Msg at a time, and has the opportunity to emit zero to many packets.
It can also populate the recmodel's recording session configuration.Modifier and Type | Method and Description |
---|---|
void |
completeUpgrade(IPacketOutputStream writer,
RecordingSessionConfiguration configuration)
Completes the upgrade.
|
boolean |
convertMessage(Msg msg,
IPacketOutputStream writer,
RecordingSessionConfiguration configuration)
Converts the provided Msg.
|
long |
getRecordingInitialTime()
Returns the initial time of the recording, if this piece of information is available, expressed
as milliseconds since the time 00:00:00 UTC on January 1, 1970.
|
void |
initializeUpgrade(IPacketOutputStream writer,
RecordingSessionConfiguration configuration,
IRecModelUpgradeLog log)
Initializes this upgrader.
|
void initializeUpgrade(IPacketOutputStream writer, RecordingSessionConfiguration configuration, IRecModelUpgradeLog log) throws IOException
writer
- A recmodel writer that can be used to emit zero or more packets.configuration
- A recording session configuration that can be augmented with recorder
configurations and options as needed.IOException
boolean convertMessage(Msg msg, IPacketOutputStream writer, RecordingSessionConfiguration configuration) throws IOException
msg
- The input Msg to convert.writer
- A recmodel writer that can be used to emit zero or more packets that result
from the conversion of the message.configuration
- A recording session configuration that can be augmented with options
that result from the conversion of the message.IOException
- Any exception thrown by the writervoid completeUpgrade(IPacketOutputStream writer, RecordingSessionConfiguration configuration) throws IOException
IMsgUpgrader.convertMessage(Msg, IPacketOutputStream, RecordingSessionConfiguration)
invocations
have returned false
).writer
- A recmodel writer that can be used to emit zero or more packets.configuration
- A recording session configuration that can be augmented with recorder
configurations and options as needed.IOException
long getRecordingInitialTime()
© Copyright IBM Corp. 2013. All rights reserved.