Class ExternalVariableUpdateImportIndexHandler
java.lang.Object
io.camunda.optimize.service.importing.ingested.handler.ExternalVariableUpdateImportIndexHandler
- All Implemented Interfaces:
ImportIndexHandler<TimestampBasedImportPage,TimestampBasedImportIndexDto>
@Component
@Scope("prototype")
public class ExternalVariableUpdateImportIndexHandler
extends Object
implements ImportIndexHandler<TimestampBasedImportPage,TimestampBasedImportIndexDto>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OffsetDateTimeprotected ConfigurationServiceprotected IngestedDataSourceDtostatic final Stringprotected TimestampBasedImportIndexReaderprotected org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a data transfer object (DTO) of the current index state.Retrieves all information of the next page to import.protected voidinit()voidResets the import index such that it can start the import all over again.voidvoidupdatePendingTimestampOfLastEntity(OffsetDateTime timestamp) voidupdateTimestampOfLastEntity(OffsetDateTime timestamp)
-
Field Details
-
EXTERNAL_VARIABLE_UPDATE_IMPORT_INDEX_DOC_ID
- See Also:
-
BEGINNING_OF_TIME
-
configurationService
-
importIndexReader
-
logger
protected org.slf4j.Logger logger -
dataSource
-
-
Constructor Details
-
ExternalVariableUpdateImportIndexHandler
public ExternalVariableUpdateImportIndexHandler()
-
-
Method Details
-
init
@PostConstruct protected void init() -
getNextPage
Description copied from interface:ImportIndexHandlerRetrieves all information of the next page to import.- Specified by:
getNextPagein interfaceImportIndexHandler<TimestampBasedImportPage,TimestampBasedImportIndexDto>
-
getIndexStateDto
Description copied from interface:ImportIndexHandlerCreates a data transfer object (DTO) of the current index state. On every restart of Optimize this information can be used to continue the import where it stopped the last time.- Specified by:
getIndexStateDtoin interfaceImportIndexHandler<TimestampBasedImportPage,TimestampBasedImportIndexDto>
-
resetImportIndex
public void resetImportIndex()Description copied from interface:ImportIndexHandlerResets the import index such that it can start the import all over again. E.g., that can be helpful to import entities that were missed during the first round.- Specified by:
resetImportIndexin interfaceImportIndexHandler<TimestampBasedImportPage,TimestampBasedImportIndexDto>
-
getDataSourceAlias
-
getTimestampOfLastEntity
-
updateLastImportExecutionTimestamp
public void updateLastImportExecutionTimestamp() -
updateTimestampOfLastEntity
-
updatePendingTimestampOfLastEntity
-