Align rollouts and autoassign metrics (#2844)

* Refactor auto-assign locking and metrics
* Align rollouts and autoassign metrics

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-12-03 12:34:40 +02:00
committed by GitHub
parent 977b3fe40c
commit 904c8b180d
12 changed files with 211 additions and 136 deletions

View File

@@ -12,18 +12,18 @@ package org.eclipse.hawkbit.repository;
/**
* An interface declaration which contains the check for the auto assignment logic.
*/
public interface AutoAssignExecutor {
public interface AutoAssignHandler {
/**
* Checks all target filter queries with an auto assign distribution set and triggers the check and assignment to targets that don't have
* the design DS yet
*/
void checkAllTargets();
void handleAll();
/**
* Method performs an auto assign check for a specific device only
*
* @param controllerId of the device to check
*/
void checkSingleTarget(String controllerId);
void handleSingleTarget(String controllerId);
}

View File

@@ -43,4 +43,4 @@ public interface RolloutHandler {
*/
@PreAuthorize(SpringEvalExpressions.IS_SYSTEM_CODE)
void handleAll();
}
}