Class BatchInfo
- All Implemented Interfaces:
Serializable
BatchInfo class.
- Version:
- $Id: $Id
- Author:
- matthieu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantBATCH_DESC_ID="batchDescId"static final StringConstantBATCH_ID="batchId"static final StringConstantBATCH_USER="batchUser"private StringId of the batch will be used assign to threadPoolprivate StringWill serve as uniq batchIdprivate intprivate StringUser that has launch the batchprivate Integerprivate Integerprivate static final intConstantBATCH_SIZE=15private static final intConstantBATCH_THREAD=3private Stringprivate booleanprivate Booleanprivate Stringprivate Stringprivate Booleanprivate BatchPriorityprivate Booleanprivate static final longprivate Stringprivate Stringprivate Integerprivate Integerprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableNotifyByMail(String mailAction, String mailActionUrl) enableNotifyByMail.booleanGetter for the fieldbatchDescId.Getter for the fieldbatchId.intGetter for the fieldbatchSize.Getter for the fieldbatchUser.Getter for the fieldcurrentItem.Getter for the fieldcurrentStep.Getter for the fieldentityDescription.Getter for the fieldisCompleted.Getter for the fieldmailAction.Getter for the fieldmailActionUrl.Getter for the fieldnotifyByMail.intGetter for the fieldpriority.Getter for the fieldrunAsSystem.Getter for the fieldstepDescId.Getter for the fieldtenant.Getter for the fieldtotalItems.Getter for the fieldtotalSteps.intGetter for the fieldworkerThreads.inthashCode()booleanisCancelled.voidsetBatchId(String batchId) Setter for the fieldbatchId.voidsetBatchSize(int batchSize) Setter for the fieldbatchSize.voidsetBatchUser(String batchUser) Setter for the fieldbatchUser.voidsetCancelled(boolean isCancelled) setCancelled.voidsetCurrentItem(Integer currentItem) Setter for the fieldcurrentItem.voidsetCurrentStep(Integer currentStep) Setter for the fieldcurrentStep.voidsetIsCompleted(Boolean isCompleted) Setter for the fieldisCompleted.voidsetPriority(BatchPriority priority) Setter for the fieldpriority.voidsetRunAsSystem(Boolean runAsSystem) Setter for the fieldrunAsSystem.voidsetStepDescId(String stepDescId) Setter for the fieldstepDescId.voidsetTotalItems(Integer totalItems) Setter for the fieldtotalItems.voidsetTotalSteps(Integer totalSteps) Setter for the fieldtotalSteps.voidsetWorkerThreads(int workerThreads) Setter for the fieldworkerThreads.org.json.JSONObjecttoJson()toJson.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
DEFAULT_BATCH_THREAD
private static final int DEFAULT_BATCH_THREADConstantBATCH_THREAD=3- See Also:
-
DEFAULT_BATCH_SIZE
private static final int DEFAULT_BATCH_SIZEConstantBATCH_SIZE=15- See Also:
-
batchId
Will serve as uniq batchId -
batchDescId
Id of the batch will be used assign to threadPool -
batchUser
User that has launch the batch -
stepDescId
-
currentStep
-
totalSteps
-
currentItem
-
totalItems
-
runAsSystem
-
notifyByMail
-
mailAction
-
mailActionUrl
-
entityDescription
-
workerThreads
private int workerThreads -
batchSize
private int batchSize -
isCompleted
-
tenant
-
isCancelled
private boolean isCancelled -
BATCH_DESC_ID
ConstantBATCH_DESC_ID="batchDescId"- See Also:
-
BATCH_USER
ConstantBATCH_USER="batchUser"- See Also:
-
BATCH_ID
ConstantBATCH_ID="batchId"- See Also:
-
priority
-
-
Constructor Details
-
Method Details
-
setCancelled
public void setCancelled(boolean isCancelled) setCancelled.
- Parameters:
isCancelled- a boolean
-
isCancelled
public boolean isCancelled()isCancelled.
- Returns:
- a boolean
-
getCurrentItem
Getter for the field
currentItem.- Returns:
- a
Integerobject
-
setCurrentItem
Setter for the field
currentItem.- Parameters:
currentItem- aIntegerobject
-
getTotalItems
Getter for the field
totalItems.- Returns:
- a
Integerobject
-
setTotalItems
Setter for the field
totalItems.- Parameters:
totalItems- aIntegerobject
-
getCurrentStep
Getter for the field
currentStep.- Returns:
- a
Integerobject
-
setCurrentStep
Setter for the field
currentStep.- Parameters:
currentStep- aIntegerobject
-
getTotalSteps
Getter for the field
totalSteps.- Returns:
- a
Integerobject
-
setTotalSteps
Setter for the field
totalSteps.- Parameters:
totalSteps- aIntegerobject
-
getStepDescId
Getter for the field
stepDescId.- Returns:
- a
Stringobject
-
setStepDescId
Setter for the field
stepDescId.- Parameters:
stepDescId- aStringobject
-
getPriority
public int getPriority()Getter for the field
priority.- Returns:
- a int
-
setPriority
Setter for the field
priority.- Parameters:
priority- aBatchPriorityobject
-
getTenant
Getter for the field
tenant.- Returns:
- a
Stringobject
-
getBatchId
Getter for the field
batchId.- Returns:
- a
Stringobject
-
getBatchUser
Getter for the field
batchUser.- Returns:
- a
Stringobject
-
getRunAsSystem
Getter for the field
runAsSystem.- Returns:
- a
Booleanobject
-
getNotifyByMail
Getter for the field
notifyByMail.- Returns:
- a
Booleanobject
-
getEntityDescription
Getter for the field
entityDescription.- Returns:
- a
Stringobject
-
enableNotifyByMail
enableNotifyByMail.
-
setBatchId
Setter for the field
batchId.- Parameters:
batchId- aStringobject
-
setBatchUser
Setter for the field
batchUser.- Parameters:
batchUser- aStringobject
-
setRunAsSystem
Setter for the field
runAsSystem.- Parameters:
runAsSystem- aBooleanobject
-
getMailActionUrl
Getter for the field
mailActionUrl.- Returns:
- a
Stringobject
-
getBatchDescId
Getter for the field
batchDescId.- Returns:
- a
Stringobject
-
getMailAction
Getter for the field
mailAction.- Returns:
- a
Stringobject
-
getWorkerThreads
public int getWorkerThreads()Getter for the field
workerThreads.- Returns:
- a int
-
setWorkerThreads
public void setWorkerThreads(int workerThreads) Setter for the field
workerThreads.- Parameters:
workerThreads- a int
-
getBatchSize
public int getBatchSize()Getter for the field
batchSize.- Returns:
- a int
-
setBatchSize
public void setBatchSize(int batchSize) Setter for the field
batchSize.- Parameters:
batchSize- a int
-
getIsCompleted
Getter for the field
isCompleted.- Returns:
- a
Booleanobject
-
setIsCompleted
Setter for the field
isCompleted.- Parameters:
isCompleted- aBooleanobject
-
toJson
public org.json.JSONObject toJson()toJson.
- Returns:
- a
JSONObjectobject
-
hashCode
public int hashCode() -
equals
-