public class ZombieJobProducer extends Object implements JobStoryProducer
JobStorys from job trace.| 构造器和说明 |
|---|
ZombieJobProducer(InputStream input,
ZombieCluster cluster)
Constructor
|
ZombieJobProducer(InputStream input,
ZombieCluster cluster,
long randomSeed)
Constructor
|
ZombieJobProducer(Path path,
ZombieCluster cluster,
Configuration conf)
Constructor
|
ZombieJobProducer(Path path,
ZombieCluster cluster,
Configuration conf,
long randomSeed)
Constructor
|
public ZombieJobProducer(Path path, ZombieCluster cluster, Configuration conf) throws 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 - IOExceptionpublic ZombieJobProducer(Path path, ZombieCluster cluster, Configuration conf, long randomSeed) throws 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.IOExceptionpublic ZombieJobProducer(InputStream input, ZombieCluster cluster) throws 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.IOExceptionpublic ZombieJobProducer(InputStream input, ZombieCluster cluster, long randomSeed) throws 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.IOExceptionpublic ZombieJob getNextJob() throws IOException
JobStoryProducergetNextJob 在接口中 JobStoryProducerIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2009 The Apache Software Foundation