Set backoff-jitter for call-home devices
[netconf.git] / apps / callhome-provider / src / main / java / org / opendaylight / netconf / callhome / mount / CallHomeMountService.java
index c0067275caa3893de2521cec9aca52c014682645..b3da20539195a10bdcc0813579bd99b8bc7e5084 100644 (file)
@@ -46,8 +46,8 @@ import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IetfInetUtil;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.client.rev230417.netconf.client.initiate.stack.grouping.transport.ssh.ssh.TcpClientParametersBuilder;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.device.rev240110.connection.parameters.Protocol;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.device.rev240110.connection.parameters.ProtocolBuilder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.device.rev240120.connection.parameters.Protocol;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.device.rev240120.connection.parameters.ProtocolBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev231121.NetconfNodeBuilder;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
@@ -197,8 +197,10 @@ public final class CallHomeMountService implements AutoCloseable {
                 .setConnectionTimeoutMillis(Uint32.valueOf(20000))
                 .setDefaultRequestTimeoutMillis(Uint32.valueOf(60000))
                 .setMaxConnectionAttempts(Uint32.ZERO)
-                .setBetweenAttemptsTimeoutMillis(Uint16.valueOf(2000))
-                .setSleepFactor(Decimal64.valueOf("1.5"))
+                .setMinBackoffMillis(Uint16.valueOf(2000))
+                .setMaxBackoffMillis(Uint32.valueOf(1800000))
+                .setBackoffMultiplier(Decimal64.valueOf("1.5"))
+                .setBackoffJitter(Decimal64.valueOf("0.1"))
                 .setKeepaliveDelay(Uint32.valueOf(120))
                 .setConcurrentRpcLimit(Uint16.ZERO)
                 .setActorResponseWaitTime(Uint16.valueOf(5))