From 518e7b38a64e738f99b599d966ae74bca911304d Mon Sep 17 00:00:00 2001 From: Sabby Anandan Date: Thu, 13 Aug 2020 14:49:06 -0700 Subject: [PATCH] Add default constructor --- .../braketemperature/BrakeTemperatureApplication.java | 3 +++ .../src/main/java/com/springone/braketemperature/Truck.java | 3 +++ install-scdf/deploy.sh | 2 +- trucks/src/main/java/com/springone/trucks/Truck.java | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/brake-temperature/src/main/java/com/springone/braketemperature/BrakeTemperatureApplication.java b/brake-temperature/src/main/java/com/springone/braketemperature/BrakeTemperatureApplication.java index a6381e4..3081693 100644 --- a/brake-temperature/src/main/java/com/springone/braketemperature/BrakeTemperatureApplication.java +++ b/brake-temperature/src/main/java/com/springone/braketemperature/BrakeTemperatureApplication.java @@ -57,6 +57,9 @@ class AverageBrakeTemperatureAccumulator { private Date end; + public AverageBrakeTemperatureAccumulator() { + } + public AverageBrakeTemperatureAccumulator(int count, Float totalValue) { this.count = count; this.totalValue = totalValue; diff --git a/brake-temperature/src/main/java/com/springone/braketemperature/Truck.java b/brake-temperature/src/main/java/com/springone/braketemperature/Truck.java index 62cf1d7..02f8a91 100644 --- a/brake-temperature/src/main/java/com/springone/braketemperature/Truck.java +++ b/brake-temperature/src/main/java/com/springone/braketemperature/Truck.java @@ -14,6 +14,9 @@ public class Truck { Float externalTemperature; + public Truck() { + } + public String getId() { return id; } diff --git a/install-scdf/deploy.sh b/install-scdf/deploy.sh index 0a48fa1..e6225f8 100755 --- a/install-scdf/deploy.sh +++ b/install-scdf/deploy.sh @@ -53,7 +53,7 @@ if ! helm status -n "${grafana_namespace}" "${grafana_release_name}" > /dev/null ! download_dasboard "${grafana_dashboard_root_url}/${dashboard}.json" "${grafana_tmp_folder}/${dashboard}.json" exit 1 kubectl -n "${grafana_namespace}" delete configmap "grafana-dashboards-${dashboard}" || true && \ - kubectl -n "${grafana_namespace}" create configmap "grafana-dashboards-${dashboard}" --from-file=${dashboard}.json=${grafana_tmp_folder}/${dashboard}.json + kubectl -n "${grafana_namespace}" create configmap "grafana-dashboards-${dashboard}" --from-file=${dashboard}.json=${grafana_tmp_folder}/${dashboard}.json done cat > "${grafana_tmp_folder}/datasources.yaml" <