public abstract class BaseAmazonMapReducePostJobWorker extends Object implements AmazonMapReducePostJobWorker
AmazonMapReduceJobWorker.JobStatus
Modifier and Type | Field and Description |
---|---|
protected long |
sleepMillis |
Constructor and Description |
---|
BaseAmazonMapReducePostJobWorker(AmazonMapReduceJobWorker predecessor) |
BaseAmazonMapReducePostJobWorker(AmazonMapReduceJobWorker predecessor,
long sleepMillis) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doWork()
This abstract method performs the functional task of this post processor.
|
Map<String,String> |
getBubbleableProperties()
This method returns properties related to the post processing job that the caller
might be interested in.
|
String |
getError()
This method returns any errors associated with the current running job.
|
Map<String,String> |
getJobDetailsMap()
This method queries the hadoop framework and returns a listing of
details related to the currently running job.
|
String |
getJobId()
This method returns the jobId of the current job.
|
AmazonMapReduceJobWorker.JobStatus |
getJobStatus()
This method returns the current job state.
|
void |
run() |
protected void |
setError(String error) |
void |
shutdown()
This methods terminates the processing of this job.
|
protected static void |
sleep(long millis) |
public BaseAmazonMapReducePostJobWorker(AmazonMapReduceJobWorker predecessor)
public BaseAmazonMapReducePostJobWorker(AmazonMapReduceJobWorker predecessor, long sleepMillis)
protected abstract void doWork()
public AmazonMapReduceJobWorker.JobStatus getJobStatus()
AmazonMapReduceJobWorker
getJobStatus
in interface AmazonMapReduceJobWorker
public Map<String,String> getJobDetailsMap()
AmazonMapReduceJobWorker
getJobDetailsMap
in interface AmazonMapReduceJobWorker
public String getJobId()
AmazonMapReduceJobWorker
getJobId
in interface AmazonMapReduceJobWorker
public String getError()
AmazonMapReduceJobWorker
getError
in interface AmazonMapReduceJobWorker
protected void setError(String error)
public void shutdown()
AmazonMapReduceJobWorker
shutdown
in interface AmazonMapReduceJobWorker
public Map<String,String> getBubbleableProperties()
AmazonMapReducePostJobWorker
getBubbleableProperties
in interface AmazonMapReducePostJobWorker
protected static void sleep(long millis)
Copyright © 2009-2013 DuraSpace. All Rights Reserved.