Package ca.uhn.fhir.batch2.model
Class JobInstance
java.lang.Object
ca.uhn.fhir.batch2.model.JobInstance
- All Implemented Interfaces:
IJobInstance,ca.uhn.fhir.model.api.IModelJson
-
Field Summary
Fields inherited from interface ca.uhn.fhir.model.api.IModelJson
SENSITIVE_DATA_FILTER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JobInstancefromInstanceId(String theInstanceId) static JobInstancefromJobDefinition(JobDefinition<?> theJobDefinition) intint<T extends ca.uhn.fhir.model.api.IModelJson>
TgetParameters(Class<T> theType) doublebooleanbooleanbooleanbooleanbooleanbooleanReturns true if the job instance is in:StatusEnum.IN_PROGRESSStatusEnum.FINALIZEand is not cancelledbooleanvoidsetCancelled(boolean theCancelled) voidsetCombinedRecordsProcessed(Integer theCombinedRecordsProcessed) voidsetCombinedRecordsProcessedPerSecond(Double theCombinedRecordsProcessedPerSecond) setCreateTime(Date theCreateTime) voidsetCurrentGatedStepId(String theCurrentGatedStepId) setEndTime(Date theEndTime) setErrorCount(int theErrorCount) setErrorMessage(String theErrorMessage) voidsetEstimatedTimeRemaining(String theEstimatedTimeRemaining) voidsetFastTracking(boolean theFastTracking) voidsetInstanceId(String theInstanceId) voidsetJobDefinition(JobDefinition<?> theJobDefinition) voidsetJobDefinitionId(String theJobDefinitionId) voidsetJobDefinitionVersion(int theJobDefinitionVersion) voidsetParameters(ca.uhn.fhir.model.api.IModelJson theParameters) voidsetParameters(String theParameters) voidsetProgress(double theProgress) voidsetStartTime(Date theStartTime) setStatus(StatusEnum theStatus) voidsetTotalElapsedMillis(Integer theTotalElapsedMillis) setTriggeringClientId(String theTriggeringClientId) setTriggeringUsername(String theTriggeringUsername) voidsetUpdateTime(Date theUpdateTime) setWarningMessages(String theWarningMessages) voidsetWorkChunksPurged(boolean theWorkChunksPurged) toString()
-
Constructor Details
-
JobInstance
public JobInstance()Constructor -
JobInstance
Copy constructor
-
-
Method Details
-
getJobDefinitionId
-
setJobDefinitionId
-
getParameters
-
setParameters
-
getParameters
-
setParameters
-
setUpdateTime
-
getUpdateTime
-
fromJobDefinition
-
fromInstanceId
-
getCurrentGatedStepId
- Specified by:
getCurrentGatedStepIdin interfaceIJobInstance
-
setCurrentGatedStepId
-
getErrorCount
- Specified by:
getErrorCountin interfaceIJobInstance
-
setErrorCount
-
getEstimatedTimeRemaining
- Specified by:
getEstimatedTimeRemainingin interfaceIJobInstance
-
setEstimatedTimeRemaining
-
isWorkChunksPurged
- Specified by:
isWorkChunksPurgedin interfaceIJobInstance
-
setWorkChunksPurged
-
getStatus
- Specified by:
getStatusin interfaceIJobInstance
-
setStatus
-
getJobDefinitionVersion
- Specified by:
getJobDefinitionVersionin interfaceIJobInstance
-
setJobDefinitionVersion
-
getInstanceId
- Specified by:
getInstanceIdin interfaceIJobInstance
-
setInstanceId
-
getStartTime
- Specified by:
getStartTimein interfaceIJobInstance
-
setStartTime
-
getEndTime
- Specified by:
getEndTimein interfaceIJobInstance
-
setEndTime
-
getCombinedRecordsProcessed
- Specified by:
getCombinedRecordsProcessedin interfaceIJobInstance
-
setCombinedRecordsProcessed
-
getCombinedRecordsProcessedPerSecond
- Specified by:
getCombinedRecordsProcessedPerSecondin interfaceIJobInstance
-
setCombinedRecordsProcessedPerSecond
-
getCreateTime
- Specified by:
getCreateTimein interfaceIJobInstance
-
setCreateTime
-
getTotalElapsedMillis
- Specified by:
getTotalElapsedMillisin interfaceIJobInstance
-
setTotalElapsedMillis
-
getProgress
- Specified by:
getProgressin interfaceIJobInstance
-
setProgress
-
getErrorMessage
- Specified by:
getErrorMessagein interfaceIJobInstance
-
setErrorMessage
-
getWarningMessages
- Specified by:
getWarningMessagesin interfaceIJobInstance
-
setWarningMessages
-
setJobDefinition
-
isCancelled
- Specified by:
isCancelledin interfaceIJobInstance
-
setCancelled
-
getReport
- Specified by:
getReportin interfaceIJobInstance
-
setReport
-
getTriggeringUsername
-
setTriggeringUsername
-
getTriggeringClientId
-
setTriggeringClientId
-
toString
-
isRunning
Returns true if the job instance is in:StatusEnum.IN_PROGRESSStatusEnum.FINALIZEand is not cancelled -
isFinished
-
hasGatedStep
-
isPendingCancellationRequest
-
isFastTracking
- Specified by:
isFastTrackingin interfaceIJobInstance- Returns:
- true if every step of the job has produced exactly 1 chunk.
-
setFastTracking
- Specified by:
setFastTrackingin interfaceIJobInstance
-