|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPacketReferenceStore
Provides a scalable storage area for large lists of packet references. An instance works in two successive phases: the write phase and the read phase. It is not possible to go back to the write phase once the read phase has been reached.
Method Summary | |
---|---|
void |
add(IRecorderPacketReference ref,
long minPendingPacketTime)
Adds a packet reference. |
void |
complete()
Completes this store. |
void |
dispose()
Disposes this store. |
void |
flush(IPacketReferenceOutputStream outputStream,
long minPendingPacketTime)
Completes this store if this is not already done, and sends its content to the specified stream. |
IPacketStoreIterator |
iterator()
Returns an iterator that allows to iterate through the list of packet references that were added to this store, in the same order as they were added. |
int |
size()
Returns the count of packet references in the store. |
Method Detail |
---|
void add(IRecorderPacketReference ref, long minPendingPacketTime) throws IOException
ref
- A packet reference.minPendingPacketTime
- The lowest start time of all packets that
may be added to this packet store after this packet is added.
IOException
- If the packet could not be stored (usually because there is no
more disk space), or if this store has already been completed.int size()
void complete() throws IOException
IOException
- If a disk-related problem occurred.void dispose()
void flush(IPacketReferenceOutputStream outputStream, long minPendingPacketTime) throws IOException
outputStream
- The output stream where packets should be written to.minPendingPacketTime
- The lowest start time of all packets that
may be sent to the output after the store content is flushed.
IOException
IPacketStoreIterator iterator() throws IOException
IOException
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |