-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major schema changes: 1. SimulationDefinitionType was introduced. The system config now contains a list of these definitions (to be selected from for the tasks). A task can contain a custom simulation definition as well. 2. SimulationResultType has now start and end timestamps and its definition. Other changes: - Simulation result is closed when the activity finishes: the end timestamp is recorded and the metric values are computed. (Not working quite well with distributed and delegated activities for now.) - Minor code improvements: documenting and renaming things.
- Loading branch information
Showing
30 changed files
with
887 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...va/com/evolveum/midpoint/schema/merger/simulation/SimulationDefinitionMergeOperation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (C) 2010-2023 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.schema.merger.simulation; | ||
|
||
import static com.evolveum.midpoint.xml.ns._public.common.common_3.SimulationDefinitionType.F_SUPER; | ||
|
||
import java.util.Map; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import com.evolveum.midpoint.schema.merger.BaseMergeOperation; | ||
import com.evolveum.midpoint.schema.merger.GenericItemMerger; | ||
import com.evolveum.midpoint.schema.merger.IgnoreSourceItemMerger; | ||
import com.evolveum.midpoint.schema.merger.OriginMarker; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.SimulationDefinitionType; | ||
|
||
/** | ||
* Merges {@link SimulationDefinitionType} objects. | ||
*/ | ||
public class SimulationDefinitionMergeOperation extends BaseMergeOperation<SimulationDefinitionType> { | ||
|
||
public SimulationDefinitionMergeOperation( | ||
@NotNull SimulationDefinitionType target, | ||
@NotNull SimulationDefinitionType source, | ||
@Nullable OriginMarker originMarker) { | ||
|
||
super(target, | ||
source, | ||
new GenericItemMerger( | ||
originMarker, | ||
createPathMap(Map.of( | ||
F_SUPER, IgnoreSourceItemMerger.INSTANCE | ||
)))); | ||
} | ||
} |
Oops, something went wrong.