org.openware.loadsim.link
Class DataSetWrapper

java.lang.Object
  |
  +--org.openware.loadsim.link.DataSetWrapper

public class DataSetWrapper
extends java.lang.Object

Wraps a DataSet object so that it can be shared between each VirtualUser (each VirtualUser runs in it's own thread).

Each virtual user (i.e. thread) needs to be sharing the same DataSet object. Each link, however, might access the same DataSet multiple times (for instance when during registration a user is asked to confirm his/her password). To support this requirement a DataSetWrapper will be created and owned by each VirtualUser. Before the link is processed the wrapped DataSet will be advanced and the value stored here. This way, if the DataSet is accessed multiple times in the same link it will have the same value every time.

Author:
Vincent Sheffer

Constructor Summary
DataSetWrapper(DataSet ds)
           
 
Method Summary
 void advance()
          Advance the wrapped DataSet.
 java.lang.String getValue()
          Get the value for the DataSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetWrapper

public DataSetWrapper(DataSet ds)
Method Detail

advance

public void advance()
Advance the wrapped DataSet.

getValue

public java.lang.String getValue()
Get the value for the DataSet. This value will remain the same between calls to the advance method.
Returns:
The current value of the data set.


Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.