org.apache.hadoop.mapred.gridmix
Enum JobCreator
java.lang.Object
java.lang.Enum<JobCreator>
org.apache.hadoop.mapred.gridmix.JobCreator
- All Implemented Interfaces:
- Serializable, Comparable<JobCreator>
@InterfaceAudience.Private
@InterfaceStability.Evolving
public enum JobCreator
- extends Enum<JobCreator>
|
Method Summary |
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. |
LOADJOB
public static final JobCreator LOADJOB
SLEEPJOB
public static final JobCreator SLEEPJOB
GRIDMIX_JOB_TYPE
public static final String GRIDMIX_JOB_TYPE
- See Also:
- Constant Field Values
SLEEPJOB_RANDOM_LOCATIONS
public static final String SLEEPJOB_RANDOM_LOCATIONS
- See Also:
- Constant Field Values
values
public static JobCreator[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (JobCreator c : JobCreator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JobCreator valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
createGridmixJob
public 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
- Create Gridmix simulated job.
- Parameters:
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 number
- Returns:
- the created simulated job
- Throws:
IOException
getPolicy
public static JobCreator getPolicy(org.apache.hadoop.conf.Configuration conf,
JobCreator defaultPolicy)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.