-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Semi automatic Rollouts with fine groups definition (#337)
* Rollout Mgmt API accepts now extended Group definition. Filling Reollout Groups with Targets is now a scheduled task. Signed-off-by: Dominik Herbst <[email protected]> * Fire RolloutGroupCreated event and fix db migration. Signed-off-by: Dominik Herbst <[email protected]> * Fill groups now excludes targets in own group Signed-off-by: Dominik Herbst <[email protected]> * Starting of Rollouts as scheduled task Signed-off-by: Dominik Herbst <[email protected]> * Finished implementation of new Rollout starting proccess Signed-off-by: Dominik Herbst <[email protected]> * Reset last check on status change and fixed unused imports Signed-off-by: Dominik Herbst <[email protected]> * Code quality improvements Signed-off-by: Dominik Herbst <[email protected]> * Reworked start of scheduled Actions. Improved code quality. Signed-off-by: Dominik Herbst <[email protected]>
- Loading branch information
1 parent
66b6983
commit b6834e9
Showing
37 changed files
with
2,004 additions
and
452 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
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
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
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
60 changes: 60 additions & 0 deletions
60
...java/org/eclipse/hawkbit/mgmt/json/model/rollout/AbstractMgmtRolloutConditionsEntity.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,60 @@ | ||
/** | ||
* Copyright (c) 2015 Bosch Software Innovations GmbH and others. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.eclipse.hawkbit.mgmt.json.model.rollout; | ||
|
||
import org.eclipse.hawkbit.mgmt.json.model.MgmtNamedEntity; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
/** | ||
* Model for defining Conditions and Actions | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public abstract class AbstractMgmtRolloutConditionsEntity extends MgmtNamedEntity { | ||
|
||
private MgmtRolloutCondition successCondition; | ||
private MgmtRolloutSuccessAction successAction; | ||
private MgmtRolloutCondition errorCondition; | ||
private MgmtRolloutErrorAction errorAction; | ||
|
||
public MgmtRolloutCondition getSuccessCondition() { | ||
return successCondition; | ||
} | ||
|
||
public void setSuccessCondition(final MgmtRolloutCondition successCondition) { | ||
this.successCondition = successCondition; | ||
} | ||
|
||
public MgmtRolloutSuccessAction getSuccessAction() { | ||
return successAction; | ||
} | ||
|
||
public void setSuccessAction(final MgmtRolloutSuccessAction successAction) { | ||
this.successAction = successAction; | ||
} | ||
|
||
public MgmtRolloutCondition getErrorCondition() { | ||
return errorCondition; | ||
} | ||
|
||
public void setErrorCondition(final MgmtRolloutCondition errorCondition) { | ||
this.errorCondition = errorCondition; | ||
} | ||
|
||
public MgmtRolloutErrorAction getErrorAction() { | ||
return errorAction; | ||
} | ||
|
||
public void setErrorAction(final MgmtRolloutErrorAction errorAction) { | ||
this.errorAction = errorAction; | ||
} | ||
|
||
} |
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
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
40 changes: 40 additions & 0 deletions
40
...-api/src/main/java/org/eclipse/hawkbit/mgmt/json/model/rolloutgroup/MgmtRolloutGroup.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,40 @@ | ||
/** | ||
* Copyright (c) 2015 Bosch Software Innovations GmbH and others. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.eclipse.hawkbit.mgmt.json.model.rolloutgroup; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import org.eclipse.hawkbit.mgmt.json.model.rollout.AbstractMgmtRolloutConditionsEntity; | ||
|
||
/** | ||
* Model for defining the Attributes of a Rollout Group | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class MgmtRolloutGroup extends AbstractMgmtRolloutConditionsEntity { | ||
|
||
private String targetFilterQuery; | ||
private Float targetPercentage; | ||
|
||
public String getTargetFilterQuery() { | ||
return targetFilterQuery; | ||
} | ||
|
||
public void setTargetFilterQuery(final String targetFilterQuery) { | ||
this.targetFilterQuery = targetFilterQuery; | ||
} | ||
|
||
public Float getTargetPercentage() { | ||
return targetPercentage; | ||
} | ||
|
||
public void setTargetPercentage(Float targetPercentage) { | ||
this.targetPercentage = targetPercentage; | ||
} | ||
} |
Oops, something went wrong.