@InterfaceAudience.Private @InterfaceStability.Evolving public enum JobCreator extends Enum<JobCreator>
Modifier and Type | Field and Description |
---|---|
static String |
GRIDMIX_JOB_TYPE |
static String |
SLEEPJOB_RANDOM_LOCATIONS |
Modifier and Type | Method and 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(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 String GRIDMIX_JOB_TYPE
public static final String SLEEPJOB_RANDOM_LOCATIONS
public static JobCreator[] values()
for (JobCreator c : JobCreator.values()) System.out.println(c);
public static JobCreator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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 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 numberIOException
public static JobCreator getPolicy(org.apache.hadoop.conf.Configuration conf, JobCreator defaultPolicy)
Copyright © 2018 Apache Software Foundation. All Rights Reserved.