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

Field Summary
 
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
 
Constructor Summary
SetupIterator(Integer index, String[] args)
          Constructs a SetupIterator.
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class ostore.apps.traces.TraceIterator
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

remove

public void remove()

hasNext

public boolean hasNext()

next

public Object next()