public class Accounting.JobTracker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
configuration
The job configuration.
|
protected PrintJobEntry |
entry
The job description.
|
protected com.codahale.metrics.Timer.Context |
successTimer
The timer to use in cas of success.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JobTracker(PrintJobEntry entry,
Configuration configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onJobCancel()
To be called when a job is cancelled.
|
void |
onJobError()
To be called when a job is on error.
|
long |
onJobSuccess(PrintJob.PrintResult printResult)
To be called when a job is a success.
|
protected final PrintJobEntry entry
protected final Configuration configuration
protected final com.codahale.metrics.Timer.Context successTimer
protected JobTracker(PrintJobEntry entry, Configuration configuration)
entry - the job description.configuration - the job configurationpublic long onJobSuccess(PrintJob.PrintResult printResult)
printResult - Output file size in bytespublic void onJobCancel()
public void onJobError()