java.io.Closeable, java.lang.AutoCloseable, JobStoryProducerpublic class ZombieJobProducer extends java.lang.Object implements JobStoryProducer
JobStorys from job trace.| Constructor | Description |
|---|---|
ZombieJobProducer(java.io.InputStream input,
ZombieCluster cluster) |
Constructor
|
ZombieJobProducer(java.io.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
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
ZombieJob |
getNextJob() |
Get the next job.
|
public ZombieJobProducer(org.apache.hadoop.fs.Path path,
ZombieCluster cluster,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
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 - java.io.IOExceptionpublic ZombieJobProducer(org.apache.hadoop.fs.Path path,
ZombieCluster cluster,
org.apache.hadoop.conf.Configuration conf,
long randomSeed)
throws java.io.IOException
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.java.io.IOExceptionpublic ZombieJobProducer(java.io.InputStream input,
ZombieCluster cluster)
throws java.io.IOException
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.java.io.IOExceptionpublic ZombieJobProducer(java.io.InputStream input,
ZombieCluster cluster,
long randomSeed)
throws java.io.IOException
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.java.io.IOExceptionpublic ZombieJob getNextJob() throws java.io.IOException
JobStoryProducergetNextJob in interface JobStoryProducerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.