ostore.apps.traces
Class MobileUserIterator
java.lang.Object
|
+--ostore.apps.traces.TraceIterator
|
+--ostore.apps.traces.MobileUserIterator
- All Implemented Interfaces:
- Iterator
- public class MobileUserIterator
- extends TraceIterator
A pseudo-TraceIterator
that generates an artificial
workload. The operations in this workload simulate a client moving from
object to object, performing several reads and writes on each. Or,
equivalently, one machine that various people use to access their own
files before moving on.
Each object belongs to a single working set at each timestep.
See rotate_working_set
for a description of how clients
choose their working set.
- Version:
- $Id: MobileUserIterator.java,v 1.8 2002/06/16 19:54:34 srhea Exp $
- Author:
- Dennis Geels
Fields inherited from class ostore.apps.traces.TraceIterator |
ALL, APPEND, CLOSE, CREATE, EXPAND, GETATTR, NO_DELAY, NO_OFFTIME, NOP, OPEN, READ, REPLACE, SETATTR, TRUNCATE, WRITE |
MobileUserIterator
public MobileUserIterator(Integer index,
String[] args)
- Constructs a
MobileUserIterator
.
- Parameters:
index
- The index of this client.args
- An array containing all other arguments:
args[0]==
total number clients (integer)
args[1]==
total number objects (integer)
args[2]==
length of object, in bytes (integer)
args[3]==
duration of trace, in milliseconds (long)
args[4]==
milliseconds per timestep (integer)
args[5]==
fractions of write ops (double)
args[6]==
amount to read or write, in bytes (integer)
args[7]==
filename of principal's public key
args[8]==
seed for random number generator (long)
remove
public void remove()
hasNext
public boolean hasNext()
next
public Object next()