Class CompactionCandidateService
java.lang.Object
be.vlaanderen.informatievlaanderen.ldes.server.compaction.application.services.CompactionCandidateService
-
Constructor Summary
ConstructorsConstructorDescriptionCompactionCandidateService(AllocationRepository allocationRepository, FragmentRepository fragmentRepository) -
Method Summary
Modifier and TypeMethodDescriptiongetCompactionTaskList(ViewCapacity viewCapacity) Preparation step for the Compaction Service.protected List<CompactionCandidate> getPossibleCompactionCandidates(ViewCapacity viewCapacity)
-
Constructor Details
-
CompactionCandidateService
public CompactionCandidateService(AllocationRepository allocationRepository, FragmentRepository fragmentRepository)
-
-
Method Details
-
getCompactionTaskList
Preparation step for the Compaction Service. Will retrieve an aggregated view of the allocation table where the size of members is lower than the maximum view capacity. If these fragments are connected, these will be returned in the same group.- Parameters:
viewCapacity- Contains the name and capacity for a view- Returns:
- a structured group of Fragments for a view that can be compacted
-
getPossibleCompactionCandidates
-