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()
AmazonMapReduceJobWorkergetJobStatus in interface AmazonMapReduceJobWorkerpublic Map<String,String> getJobDetailsMap()
AmazonMapReduceJobWorkergetJobDetailsMap in interface AmazonMapReduceJobWorkerpublic String getJobId()
AmazonMapReduceJobWorkergetJobId in interface AmazonMapReduceJobWorkerpublic String getError()
AmazonMapReduceJobWorkergetError in interface AmazonMapReduceJobWorkerprotected void setError(String error)
public void shutdown()
AmazonMapReduceJobWorkershutdown in interface AmazonMapReduceJobWorkerpublic Map<String,String> getBubbleableProperties()
AmazonMapReducePostJobWorkergetBubbleableProperties in interface AmazonMapReducePostJobWorkerprotected static void sleep(long millis)
Copyright © 2009-2013 DuraSpace. All Rights Reserved.