org.apache.hadoop.tools.rumen
Class ZombieJobProducer

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.ZombieJobProducer
All Implemented Interfaces:
Closeable, JobStoryProducer

public class ZombieJobProducer
extends Object
implements JobStoryProducer

Producing JobStorys from job trace.


Constructor Summary
ZombieJobProducer(InputStream input, ZombieCluster cluster)
          Constructor
ZombieJobProducer(InputStream input, ZombieCluster cluster, long randomSeed)
          Constructor
ZombieJobProducer(org.apache.hadoop.fs.Path path, ZombieCluster cluster, org.apache.hadoop.conf.Configuration conf)
          Constructor
ZombieJobProducer(org.apache.hadoop.fs.Path path, ZombieCluster cluster, org.apache.hadoop.conf.Configuration conf, long randomSeed)
          Constructor
 
Method Summary
 void close()
           
 ZombieJob getNextJob()
          Get the next job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZombieJobProducer

public ZombieJobProducer(org.apache.hadoop.fs.Path path,
                         ZombieCluster cluster,
                         org.apache.hadoop.conf.Configuration conf)
                  throws IOException
Constructor

Parameters:
path - Path to the JSON trace file, possibly compressed.
cluster - The topology of the cluster that corresponds to the jobs in the trace. The argument can be null if we do not have knowledge of the cluster topology.
conf -
Throws:
IOException

ZombieJobProducer

public ZombieJobProducer(org.apache.hadoop.fs.Path path,
                         ZombieCluster cluster,
                         org.apache.hadoop.conf.Configuration conf,
                         long randomSeed)
                  throws IOException
Constructor

Parameters:
path - Path to the JSON trace file, possibly compressed.
cluster - The topology of the cluster that corresponds to the jobs in the trace. The argument can be null if we do not have knowledge of the cluster topology.
conf -
randomSeed - use a deterministic seed.
Throws:
IOException

ZombieJobProducer

public ZombieJobProducer(InputStream input,
                         ZombieCluster cluster)
                  throws IOException
Constructor

Parameters:
input - The input stream for the JSON trace.
cluster - The topology of the cluster that corresponds to the jobs in the trace. The argument can be null if we do not have knowledge of the cluster topology.
Throws:
IOException

ZombieJobProducer

public ZombieJobProducer(InputStream input,
                         ZombieCluster cluster,
                         long randomSeed)
                  throws IOException
Constructor

Parameters:
input - The input stream for the JSON trace.
cluster - The topology of the cluster that corresponds to the jobs in the trace. The argument can be null if we do not have knowledge of the cluster topology.
randomSeed - use a deterministic seed.
Throws:
IOException
Method Detail

getNextJob

public ZombieJob getNextJob()
                     throws IOException
Description copied from interface: JobStoryProducer
Get the next job.

Specified by:
getNextJob in interface JobStoryProducer
Returns:
The next job. Or null if no more job is available.
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2009 The Apache Software Foundation