{
"operation-name" : "add",
"description" : "Add an HA Policy to configure high availability for this ActiveMQ server.",
"request-properties" : {
"allow-failback" : {
"type" : {
"TYPE_MODEL_VALUE" : "BOOLEAN"
},
"description" : "Whether a server will automatically stop when a another places a request to take over its place. The use case is when a regular server stops and its backup takes over its duties, later the main server restarts and requests the server (the former backup) to stop operating.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"default" : true,
"stability" : "default"
},
"cluster-name" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "Name of the cluster used for replication. If it is undefined, the name of the first cluster connection defined in the configuration will be used.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"group-name" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "If set, backup servers will only pair with live servers with matching group-name.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"initial-replication-sync-timeout" : {
"type" : {
"TYPE_MODEL_VALUE" : "LONG"
},
"description" : "How long to wait until the initiation replication is synchronized.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"default" : 30000,
"unit" : "MILLISECONDS",
"stability" : "default"
},
"max-saved-replicated-journal-size" : {
"type" : {
"TYPE_MODEL_VALUE" : "INT"
},
"description" : "This specifies how many times a replicated backup server can restart after moving its files on start. Once there are this number of backup journal files the server will stop permanently after if fails back.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"default" : 2,
"stability" : "default"
},
"restart-backup" : {
"type" : {
"TYPE_MODEL_VALUE" : "BOOLEAN"
},
"description" : "Will this server, if a backup, restart once it has been stopped because of failback or scaling down.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"default" : true,
"stability" : "default"
},
"scale-down" : {
"type" : {
"TYPE_MODEL_VALUE" : "BOOLEAN"
},
"description" : "Configure whether this server send its messages to another live server in the scale-down cluster when it is shutdown cleanly.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"stability" : "default"
},
"scale-down-cluster-name" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "Name of the cluster used to scale down.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"scale-down-commit-interval" : {
"type" : {
"TYPE_MODEL_VALUE" : "INT"
},
"description" : "The batch size for committing the messages being moved on scale down.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"default" : -1,
"stability" : "default"
},
"scale-down-connectors" : {
"type" : {
"TYPE_MODEL_VALUE" : "LIST"
},
"description" : "List of connectors used to form the scale-down cluster.",
"expressions-allowed" : false,
"required" : false,
"nillable" : true,
"alternatives" : ["scale-down-discovery-group"],
"min-length" : 0,
"max-length" : 2147483647,
"stability" : "default",
"value-type" : {
"TYPE_MODEL_VALUE" : "STRING"
}
},
"scale-down-discovery-group" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "Name of the discovery group used to build the scale-down cluster",
"expressions-allowed" : false,
"required" : false,
"nillable" : true,
"alternatives" : ["scale-down-connectors"],
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"scale-down-group-name" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "Name of the group used to scale down.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
}
},
"reply-properties" : {},
"stability" : "default",
"read-only" : false,
"runtime-only" : false
}