Skip to main content

Overview

The following request fields control which topics load, into which branch, and with what scope.

Request

DlcLoadRequest

KeyRequiredTypeDescription
topicsYSet<String>Set of topics or aliases.
topicOverridesSet<ILoadingTopicDescription>Topic overrides.
scopeIDlcScopeScope Parameters
branchStringThe branch to operate on.
performGcOnStartBooleanPerform a Garbage collection before the datastore transaction.
performGcOnCompletionBooleanPerform a Garbage collection after the datastore transaction.
sourceNameStringThe source name to operate on. See source to topic matching.
sourceTypeDlcSourceTypeThe source type to operate on. See source to topic matching.

Example:

DlcLoadRequest.builder()
    .topics("Topic1", "Topic2") // Required
    .topicOverrides(Set.of(CsvTopicDescription.builder("TopicToOverride", "glob:file*.csv")...build()))
    .scope(DlcScope.of("ScopeKey1", "ScopeValue1"))
    .branch("BranchToLoadInto")
    .sourceName("NameOfSourceToUse")
    .sourceType(DlcSourceType.LOCAL_SOURCE)
    .build();

Response

DlcLoadResponse

KeyTypeDescription
reportLoadReportReport of what occurred during the loading operation.
statusDlcStatusStatus of the DLC Operation.

LoadReport

KeyTypeDescription
parsingReportMap<String, Map<String, ITopicParsingReport>>Per source and per topic parsing report provided by the Atoti API. Will contain fine-grain details. Needs to be enabled either in the Source Configuration or through global property activeviam.msg.reporting.enabled
errorsMap<String, List<DlcMessageCollector.OnError>>Errors that occurred while loading.
messagesPublishedMap<String, List<DlcMessageCollector.OnMessagePublished>>The Atoti message when the records are published to the datastore.
messageStartedMap<String, List<DlcMessageCollector.OnMessageStarted>>The Atoti message when the records are sent to the Tuple Publisher.

DlcStatus

A simple enum to capture if the DLC request was executed.
KeyDescription
OKRequest was handled successfully.
ERRORRequest was not able to be performed correctly.