org.apache.hadoop.mapred.gridmix
Class SleepJob

java.lang.Object
  extended by org.apache.hadoop.mapred.gridmix.SleepJob
All Implemented Interfaces:
Comparable<Delayed>, Callable<Job>, Delayed

public class SleepJob
extends Object


Nested Class Summary
static class GridmixJob.DraftPartitioner<V>
           
static class GridmixJob.SpecGroupingComparator
           
static class SleepJob.SleepInputFormat
           
static class SleepJob.SleepMapper
           
static class SleepJob.SleepReducer
           
static class SleepJob.SleepSplit
           
 
Field Summary
protected static String GRIDMIX_DEFAULT_QUEUE
           
protected static String GRIDMIX_JOB_SEQ
           
static String GRIDMIX_SLEEP_INTERVAL
          Interval at which to report progress, in seconds.
static String GRIDMIX_SLEEP_MAX_MAP_TIME
           
static String GRIDMIX_SLEEP_MAX_REDUCE_TIME
           
protected static String GRIDMIX_USE_QUEUE_IN_TRACE
           
protected  Job job
           
protected  JobStory jobdesc
           
static String JOBNAME
           
static org.apache.commons.logging.Log LOG
           
static String ORIGNAME
           
protected  org.apache.hadoop.fs.Path outdir
           
protected  int seq
           
static String SLEEPJOB_MAPTASK_ONLY
           
protected  long submissionTimeNanos
           
protected  org.apache.hadoop.security.UserGroupInformation ugi
           
 
Constructor Summary
SleepJob(org.apache.hadoop.conf.Configuration conf, long submissionMillis, JobStory jobdesc, org.apache.hadoop.fs.Path outRoot, org.apache.hadoop.security.UserGroupInformation ugi, int seq, int numLocations, String[] hosts)
           
 
Method Summary
 Job call()
           
 int compareTo(Delayed other)
           
 boolean equals(Object other)
           
 long getDelay(TimeUnit unit)
           
 org.apache.hadoop.security.UserGroupInformation getUgi()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

SLEEPJOB_MAPTASK_ONLY

public static final String SLEEPJOB_MAPTASK_ONLY
See Also:
Constant Field Values

GRIDMIX_SLEEP_INTERVAL

public static final String GRIDMIX_SLEEP_INTERVAL
Interval at which to report progress, in seconds.

See Also:
Constant Field Values

GRIDMIX_SLEEP_MAX_MAP_TIME

public static final String GRIDMIX_SLEEP_MAX_MAP_TIME
See Also:
Constant Field Values

GRIDMIX_SLEEP_MAX_REDUCE_TIME

public static final String GRIDMIX_SLEEP_MAX_REDUCE_TIME
See Also:
Constant Field Values

JOBNAME

public static final String JOBNAME
See Also:
Constant Field Values

ORIGNAME

public static final String ORIGNAME
See Also:
Constant Field Values

seq

protected final int seq

outdir

protected final org.apache.hadoop.fs.Path outdir

job

protected final Job job

jobdesc

protected final JobStory jobdesc

ugi

protected final org.apache.hadoop.security.UserGroupInformation ugi

submissionTimeNanos

protected final long submissionTimeNanos

GRIDMIX_JOB_SEQ

protected static final String GRIDMIX_JOB_SEQ
See Also:
Constant Field Values

GRIDMIX_USE_QUEUE_IN_TRACE

protected static final String GRIDMIX_USE_QUEUE_IN_TRACE
See Also:
Constant Field Values

GRIDMIX_DEFAULT_QUEUE

protected static final String GRIDMIX_DEFAULT_QUEUE
See Also:
Constant Field Values
Constructor Detail

SleepJob

public SleepJob(org.apache.hadoop.conf.Configuration conf,
                long submissionMillis,
                JobStory jobdesc,
                org.apache.hadoop.fs.Path outRoot,
                org.apache.hadoop.security.UserGroupInformation ugi,
                int seq,
                int numLocations,
                String[] hosts)
         throws IOException
Throws:
IOException
Method Detail

call

public Job call()
         throws IOException,
                InterruptedException,
                ClassNotFoundException
Throws:
IOException
InterruptedException
ClassNotFoundException

getUgi

public org.apache.hadoop.security.UserGroupInformation getUgi()

toString

public String toString()
Overrides:
toString in class Object

getDelay

public long getDelay(TimeUnit unit)
Specified by:
getDelay in interface Delayed

compareTo

public int compareTo(Delayed other)
Specified by:
compareTo in interface Comparable<Delayed>

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 The Apache Software Foundation