|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.test.lt.testgen.core.conversion.BasePacketConverter
public abstract class BasePacketConverter
A base implementation of IPacketConverter
that stores the context passed to
the BasePacketConverter.initialize(IPacketConverterContext)
.
Constructor Summary | |
---|---|
BasePacketConverter()
|
Method Summary | |
---|---|
void |
complete()
This implementation does nothing. |
void |
dispose()
This implementation does nothing. |
protected IPacketConverterContext |
getContext()
Returns the context of this packet converter. |
Set<String> |
getOutputPacketTypes(Set<String> inputPacketTypes)
This implementation returns the set that was passed as an argument. |
void |
initialize(IPacketConverterContext context)
Stores the context so it can be later accessed using BasePacketConverter.getContext() . |
void |
writePacket(IRecorderPacketReference ref,
long minPendingPacketTime)
This implementation sends the packet to this converter output, with no additional transformation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasePacketConverter()
Method Detail |
---|
public Set<String> getOutputPacketTypes(Set<String> inputPacketTypes)
getOutputPacketTypes
in interface IPacketConverter
inputPacketTypes
- A set of packet types.
public void initialize(IPacketConverterContext context) throws CoreException
BasePacketConverter.getContext()
.
This method can be overridden, but the implementation should invoke its super
implementation.
initialize
in interface IPacketConverter
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
protected final IPacketConverterContext getContext()
public void complete() throws IOException
complete
in interface IPacketConverter
IOException
public void writePacket(IRecorderPacketReference ref, long minPendingPacketTime) throws IOException
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.
IOException
public void dispose()
dispose
in interface IPacketConverter
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |