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() |
String |
getId() |
String |
getOwnerJobName() |
String |
getQueueName()
Returns the name of the queue that this instance uses to pipeline its records
|
long |
getRecordCount() |
com.mulesoft.mule.runtime.module.batch.api.BatchJobResult |
getResult() |
com.mulesoft.mule.runtime.module.batch.api.BatchJobInstanceStatus |
getStatus() |
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(com.mulesoft.mule.runtime.module.batch.api.BatchJobInstanceStatus status)
Sets the status for this instance
|
public String getId()
getId in interface com.mulesoft.mule.runtime.module.batch.api.BatchJobInstancepublic com.mulesoft.mule.runtime.module.batch.api.BatchJobResult getResult()
getResult in interface com.mulesoft.mule.runtime.module.batch.api.BatchJobInstancepublic com.mulesoft.mule.runtime.module.batch.api.BatchJobInstanceStatus getStatus()
getStatus in interface com.mulesoft.mule.runtime.module.batch.api.BatchJobInstancepublic void setStatus(com.mulesoft.mule.runtime.module.batch.api.BatchJobInstanceStatus status)
setStatus in interface BatchJobInstanceAdapterstatus - a BatchJobInstanceStatuspublic long getRecordCount()
getRecordCount in interface com.mulesoft.mule.runtime.module.batch.api.BatchJobInstancepublic void setRecordCount(long recordCount)
setRecordCount in interface BatchJobInstanceAdapterrecordCount - a positive integer greater than zeropublic Date getCreationTime()
getCreationTime in interface com.mulesoft.mule.runtime.module.batch.api.BatchJobInstancepublic String getOwnerJobName()
getOwnerJobName in interface com.mulesoft.mule.runtime.module.batch.api.BatchJobInstancepublic 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–2022 MuleSoft, Inc.. All rights reserved.