DaanHoogland commented on a change in pull request #5783:
URL: https://github.com/apache/cloudstack/pull/5783#discussion_r771279402



##########
File path: 
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
##########
@@ -1311,6 +1316,26 @@ public boolean configureHostParams(final Map<String, 
String> params) {
         return true;
     }
 
+    public void configureHeartBeatParams(final Map<String, String> params) {
+        Long heartBeatUpdateMaxRetries = null;
+        Long heartBeatUpdateRetrySleep = null;
+        Long heartBeatUpdateTimeout = null;
+        KVMHAMonitor.HeartBeatAction heartBeatFailureAction = null;
+        if (params.get(KVM_HEARTBEAT_UPDATE_MAX_RETRIES) != null) {
+            heartBeatUpdateMaxRetries = 
Long.parseLong(params.get(KVM_HEARTBEAT_UPDATE_MAX_RETRIES));
+        }
+        if (params.get(KVM_HEARTBEAT_UPDATE_RETRY_SLEEP) != null) {
+            heartBeatUpdateRetrySleep = 
Long.parseLong(params.get(KVM_HEARTBEAT_UPDATE_RETRY_SLEEP));
+        }
+        if (params.get(KVM_HEARTBEAT_UPDATE_TIMEOUT) != null) {
+            heartBeatUpdateTimeout = 
Long.parseLong(params.get(KVM_HEARTBEAT_UPDATE_TIMEOUT));
+        }
+        if (params.get(KVM_HEARTBEAT_FAILURE_ACTION) != null) {
+            heartBeatFailureAction = 
KVMHAMonitor.HeartBeatAction.valueOf(params.get(KVM_HEARTBEAT_FAILURE_ACTION).toUpperCase());
+        }

Review comment:
       never mind, not fully awake




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to