|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPacketConverter
A packet converter performs the on-the-fly conversion of a recorder packet stream to another recorder packet stream. The conversion may result in the same number of packets, or less, or more packets, of the same type or of a different type. A packet converter is passed input packets one by one. Depending of its logic, it may decide, after each packet it receives, to emit zero to many packets to its output stream.
Method Summary | |
---|---|
void |
complete()
Completes the conversion. |
void |
dispose()
Allows the converter to release any resources it has allocated. |
Set<String> |
getOutputPacketTypes(Set<String> inputPacketTypes)
Returns all packet types that this converter can produce, for the given set of packet input types. |
void |
initialize(IPacketConverterContext context)
Initializes the packet converter. |
Methods inherited from interface com.ibm.rational.test.lt.testgen.core.conversion.IPacketReferenceOutputStream |
---|
writePacket |
Method Detail |
---|
Set<String> getOutputPacketTypes(Set<String> inputPacketTypes)
inputPacketTypes
- A set of packet types.
void initialize(IPacketConverterContext context) throws CoreException
context
- The context that can be used by the packet converter to read its
configuration, retrieve its output stream or create attachments. At this time the
converter may not emit packet (IPacketConverterContext.getOutputStream()
will return null
).
CoreException
- If the packet converter cannot initialize and operate.void complete() throws IOException
IPacketConverter.dispose()
instead.
IOException
void dispose()
IPacketConverter.initialize(IPacketConverterContext)
has been
invoked.
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |