public class DefaultBatchJobInstance extends Object implements BatchJobInstanceAdapter
| Constructor and Description |
|---|
DefaultBatchJobInstance(String id,
String ownerJobName,
org.mule.runtime.core.api.event.CoreEvent muleEvent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BatchEvent |
getBatchEvent()
Returns the
BatchEvent that was used to start this instance |
Date |
getCreationTime()
The instant at which this instance was created.
|
String |
getId()
Returns the id of this execution.
|
String |
getOwnerJobName()
The name of the
BatchJob that spawned this instance |
String |
getQueueName()
Returns the name of the queue that this instance uses to pipeline its records
|
long |
getRecordCount()
Returns the total number of records that this instance is bound to process
|
BatchJobResult |
getResult()
Reflects the final result of the job execution.
|
BatchJobInstanceStatus |
getStatus()
Returns this instance's status
|
int |
hashCode() |
void |
setQueueName(String queueName)
sets the name of the queue that this instance uses to pipeline its records
|
void |
setRecordCount(long recordCount)
Sets the number of records this instance is bound to process
|
void |
setStatus(BatchJobInstanceStatus status)
Sets the status for this instance
|
public String getId()
getId in interface BatchJobInstanceStringpublic BatchJobResult getResult()
getResult in interface BatchJobInstanceBatchJobResultpublic BatchJobInstanceStatus getStatus()
getStatus in interface BatchJobInstanceBatchJobInstanceStatuspublic void setStatus(BatchJobInstanceStatus status)
setStatus in interface BatchJobInstanceAdapterstatus - a BatchJobInstanceStatuspublic long getRecordCount()
getRecordCount in interface BatchJobInstancepublic void setRecordCount(long recordCount)
setRecordCount in interface BatchJobInstanceAdapterrecordCount - a positive integer greater than zeropublic Date getCreationTime()
getCreationTime in interface BatchJobInstancenull Datepublic String getOwnerJobName()
BatchJob that spawned this instancegetOwnerJobName in interface BatchJobInstanceStringpublic BatchEvent getBatchEvent()
BatchEvent that was used to start this instancegetBatchEvent in interface BatchJobInstanceAdapterBatchEventpublic String getQueueName()
getQueueName in interface BatchJobInstanceAdapterStringpublic void setQueueName(String queueName)
setQueueName in interface BatchJobInstanceAdapterqueueName - a non empty StringCopyright © 2006–2019 MuleSoft, Inc.. All rights reserved.