org.apache.hadoop.mapred.gridmix
Enum JobCreator

java.lang.Object
  extended by java.lang.Enum<JobCreator>
      extended by org.apache.hadoop.mapred.gridmix.JobCreator
All Implemented Interfaces:
Serializable, Comparable<JobCreator>

public enum JobCreator
extends Enum<JobCreator>


Enum Constant Summary
LOADJOB
           
SLEEPJOB
           
 
Field Summary
static String GRIDMIX_JOB_TYPE
           
static String SLEEPJOB_RANDOM_LOCATIONS
           
 
Method Summary
abstract  org.apache.hadoop.mapred.gridmix.GridmixJob createGridmixJob(org.apache.hadoop.conf.Configuration conf, long submissionMillis, JobStory jobdesc, org.apache.hadoop.fs.Path outRoot, org.apache.hadoop.security.UserGroupInformation ugi, int seq)
           
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOADJOB

public static final JobCreator LOADJOB

SLEEPJOB

public static final JobCreator SLEEPJOB
Field Detail

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
Method Detail

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,
                                                                             JobStory jobdesc,
                                                                             org.apache.hadoop.fs.Path outRoot,
                                                                             org.apache.hadoop.security.UserGroupInformation ugi,
                                                                             int seq)
                                                                      throws IOException
Throws:
IOException

getPolicy

public static JobCreator getPolicy(org.apache.hadoop.conf.Configuration conf,
                                   JobCreator defaultPolicy)


Copyright © 2009 The Apache Software Foundation