java.io.Serializable, java.lang.Comparable<JobCreator>@Private @Evolving public enum JobCreator extends java.lang.Enum<JobCreator>
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
GRIDMIX_JOB_TYPE |
|
static java.lang.String |
SLEEPJOB_RANDOM_LOCATIONS |
| Modifier and Type | Method | Description |
|---|---|---|
abstract org.apache.hadoop.mapred.gridmix.GridmixJob |
createGridmixJob(org.apache.hadoop.conf.Configuration conf,
long submissionMillis,
org.apache.hadoop.tools.rumen.JobStory jobdesc,
org.apache.hadoop.fs.Path outRoot,
org.apache.hadoop.security.UserGroupInformation ugi,
int seq) |
Create Gridmix simulated job.
|
static JobCreator |
getPolicy(org.apache.hadoop.conf.Configuration conf,
JobCreator defaultPolicy) |
|
static JobCreator |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static JobCreator[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobCreator LOADJOB
public static final JobCreator SLEEPJOB
public static final java.lang.String GRIDMIX_JOB_TYPE
public static final java.lang.String SLEEPJOB_RANDOM_LOCATIONS
public static JobCreator[] values()
for (JobCreator c : JobCreator.values()) System.out.println(c);
public static JobCreator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract org.apache.hadoop.mapred.gridmix.GridmixJob createGridmixJob(org.apache.hadoop.conf.Configuration conf,
long submissionMillis,
org.apache.hadoop.tools.rumen.JobStory jobdesc,
org.apache.hadoop.fs.Path outRoot,
org.apache.hadoop.security.UserGroupInformation ugi,
int seq)
throws java.io.IOException
conf - configuration of simulated jobsubmissionMillis - At what time submission of this simulated job be
donejobdesc - JobStory obtained from traceoutRoot - gridmix output directoryugi - UGI of job submitter of this simulated jobseq - job sequence numberjava.io.IOExceptionpublic static JobCreator getPolicy(org.apache.hadoop.conf.Configuration conf, JobCreator defaultPolicy)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.