ostore.apps.traces
Class SetupIterator
java.lang.Object
|
+--ostore.apps.traces.TraceIterator
|
+--ostore.apps.traces.SetupIterator
- All Implemented Interfaces:
- Iterator
- public class SetupIterator
- extends TraceIterator
A TraceIterator
that generates only
TraceIterator.CREATE
requests. Use this iterator to
populate an oceanstore before running other experiments.
- Version:
- $Id: SetupIterator.java,v 1.3 2002/05/09 07:01:03 geels 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 |
SetupIterator
public SetupIterator(Integer index,
String[] args)
- Constructs a
SetupIterator
.
- Parameters:
index
- The index of this client.args
- An array containing all other arguments:
args[0]==
length of new files (long)
args[1]==
seed for random number generator (long)
args[2+]==
the names of the files to create.
remove
public void remove()
hasNext
public boolean hasNext()
next
public Object next()