public class ProcessorReport extends StatusReport<Processor,WorkflowReport>
Constructor and Description |
---|
ProcessorReport(Processor processor)
Constructs a new
ProcessorReport . |
Modifier and Type | Method and Description |
---|---|
void |
addActivityReport(ActivityReport activityReport) |
Set<ActivityReport> |
getActivityReports() |
int |
getJobsCompleted()
Returns the number of jobs that the processor has completed.
|
int |
getJobsCompletedWithErrors()
Returns the number of jobs that completed with an error.
|
int |
getJobsQueued()
Returns the number of jobs queued by the processor.
|
int |
getJobsStarted()
Returns the number of jobs that the processor has started processing.
|
Object |
getProperty(String key) |
Set<String> |
getPropertyKeys() |
void |
setJobsCompleted(int jobsCompleted)
Set the number of completed jobs.
|
void |
setJobsCompletedWithErrors(int jobsCompletedWithErrors)
Set the number of jobs that have completed, but with errors.
|
void |
setJobsQueued(int jobsQueued)
Set the number of queued jobs.
|
void |
setJobsStarted(int jobsStarted)
Set the number of started jobs.
|
void |
setProperty(String key,
Object value)
Set an additional property
|
addInvocation, addReportListener, getCancelledDate, getCompletedDate, getCreatedDate, getFailedDate, getInvocation, getInvocations, getParentReport, getPausedDate, getPausedDates, getResumedDate, getResumedDates, getStartedDate, getState, getSubject, getSubjectURI, outputAdded, removeReportListener, setCancelledDate, setCompletedDate, setCreatedDate, setFailedDate, setParentReport, setPausedDate, setResumedDate, setStartedDate, setState
public ProcessorReport(Processor processor)
ProcessorReport
.processor
- The processor to report onpublic void addActivityReport(ActivityReport activityReport)
public Set<ActivityReport> getActivityReports()
public int getJobsCompleted()
public int getJobsCompletedWithErrors()
public int getJobsQueued()
public int getJobsStarted()
public void setJobsCompleted(int jobsCompleted)
jobsCompleted
- the number of jobs that the processor has completed.public void setJobsCompletedWithErrors(int jobsCompletedWithErrors)
jobsCompletedWithErrors
- the number of jobs that completed with errorspublic void setJobsQueued(int jobsQueued)
jobsQueued
- the number of jobs queued by the processorpublic void setJobsStarted(int jobsStarted)
jobsStarted
- the number of jobs that the processor has started processingCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.