DaanHoogland commented on code in PR #6348:
URL: https://github.com/apache/cloudstack/pull/6348#discussion_r944290239
##########
agent/src/main/java/com/cloud/agent/properties/AgentProperties.java:
##########
@@ -24,43 +24,710 @@
* @param <T> type of the default value.
*/
public class AgentProperties{
+ private static final String DEFAULT = "default";
/**
- * Heartbeat update timeout. <br>
- * Data type: int. <br>
- * Default value: 60000 (ms).
+ * MANDATORY: The GUID to identify the agent with.<br>
+ * Generated with "uuidgen".<br>
+ * Data type: String.<br>
+ * Default value: <code>null</code>
*/
- public static final Property<Integer> HEARTBEAT_UPDATE_TIMEOUT = new
Property<Integer>("heartbeat.update.timeout", 60000);
+ public static final Property<String> GUID = new Property<>("guid", null,
String.class);
/**
- * The timeout in seconds to retrieve the target's domain id when
migrating a VM with KVM. <br>
- * Data type: int. <br>
- * Default value: 10 (sec).
+ * The java class which the agent loads to execute.<br>
+ * Data type: String.<br>
+ * Default value:
<code>com.cloud.hypervisor.kvm.resource.LibvirtComputingResource</code>
*/
- public static final Property<Integer> VM_MIGRATE_DOMAIN_RETRIEVE_TIMEOUT =
new Property<Integer>("vm.migrate.domain.retrieve.timeout", 10);
+ public static final Property<String> RESOURCE = new Property<>("resource",
"com.cloud.hypervisor.kvm.resource.LibvirtComputingResource");
/**
- * Reboot host and alert management on heartbeat timeout. <br>
- * Data type: boolean.<br>
- * Default value: true.
+ * The number of threads running in the agent.<br>
+ * Data type: Integer.<br>
+ * Default value: <code>5</code>
+ */
+ public static Property<Integer> WORKERS = new Property<>("workers", 5);
Review Comment:
```suggestion
public static final Property<Integer> WORKERS = new
Property<>("workers", 5);
```
--
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]