Modular hawkBit (#378)

* Cleaned up component scan
* More flexibility for hawkBit micro services
* Introduce spring boot starters
* Eclipse Jetty as hawkBit default
* Fixed links as prep for wiki removal

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
Kai Zimmermann
2016-12-13 12:29:21 +01:00
committed by GitHub
parent 63adbd0298
commit 92dd6a1a0e
178 changed files with 981 additions and 585 deletions

View File

@@ -24,11 +24,16 @@ public class AutoAssignProperties {
public static final String PROP_SCHEDULER_DELAY_PLACEHOLDER = "${hawkbit.autoassign.scheduler.fixedDelay:60000}";
/**
* Schedule where the autoassign scheduler looks necessary state changes in
* milliseconds.
* Schedule where the autoassign scheduler looks necessary state changes
* in milliseconds.
*/
private long fixedDelay = 60000L;
/**
* Set to true to run the autoassign scheduler.
*/
private boolean enabled = true;
public long getFixedDelay() {
return fixedDelay;
}
@@ -37,6 +42,14 @@ public class AutoAssignProperties {
this.fixedDelay = fixedDelay;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(final boolean enabled) {
this.enabled = enabled;
}
}
private final Scheduler scheduler = new Scheduler();

View File

@@ -9,13 +9,11 @@
package org.eclipse.hawkbit.repository;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Rollout Management properties.
*
*/
@Component
@ConfigurationProperties("hawkbit.rollout")
public class RolloutProperties {
// used by @Scheduled annotation which needs constant

View File

@@ -0,0 +1,53 @@
/**
* 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.repository.exception;
import org.eclipse.hawkbit.exception.AbstractServerRtException;
import org.eclipse.hawkbit.exception.SpServerError;
/**
* Thrown if repository operation is no longer supported.
*
*/
public final class MethodNotSupportedException extends AbstractServerRtException {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Creates a new MethodNotSupportedException with
* {@link SpServerError#SP_REPO_OPERATION_NOT_SUPPORTED} error.
*/
public MethodNotSupportedException() {
super(SpServerError.SP_REPO_OPERATION_NOT_SUPPORTED);
}
/**
* Creates a new MethodNotSupportedException with
* {@link SpServerError#SP_REPO_OPERATION_NOT_SUPPORTED} error.
*
* @param cause
* for the exception
*/
public MethodNotSupportedException(final Throwable cause) {
super(SpServerError.SP_REPO_OPERATION_NOT_SUPPORTED, cause);
}
/**
* Creates a new MethodNotSupportedException with
* {@link SpServerError#SP_REPO_OPERATION_NOT_SUPPORTED} error.
*
* @param message
* of the error
*/
public MethodNotSupportedException(final String message) {
super(message, SpServerError.SP_REPO_OPERATION_NOT_SUPPORTED);
}
}