Lines Matching defs:timeouts

1332      * @return Vector of timeouts for multicast convergence.
1336 int[] timeouts = parseTimeouts("net.slp.multicastTimeouts",
1339 timeouts = capTimeouts("net.slp.multicastTimeouts",
1340 timeouts,
1345 return timeouts;
1349 * @return Vector of timeouts to try for datagram transmission.
1353 int[] timeouts = parseTimeouts("net.slp.datagramTimeouts",
1356 timeouts = capTimeouts("net.slp.datagramTimeouts",
1357 timeouts,
1362 return timeouts;
1366 * @return Vector of timeouts for DA discovery multicast.
1370 int[] timeouts = parseTimeouts("net.slp.DADiscoveryTimeouts",
1373 timeouts = capTimeouts("net.slp.DADiscoveryTimeouts",
1374 timeouts,
1379 return timeouts;
1383 * This method ensures that all the timeouts are within valid ranges.
1384 * The sum of all timeouts for the given property name must not
1386 * the sum of all timeouts does exceed the maximum wait period the
1387 * timeouts are averaged out so that the sum equals the maximum wait
1391 * is true. Then the sum of all timeouts must also be between <i>min</i>
1392 * and <i>max</i>. If the sum of all timeouts is not within the range
1399 * @param timeouts
1409 * Array of capped timeouts. Note this may be the same array as
1410 * passed in (<i>timeouts</i>).
1413 int[] timeouts,
1421 for (int index = 0; index < timeouts.length; index++) {
1422 totalWait += timeouts[index];
1426 // If sum of timeouts within limits then finished.
1428 return timeouts;
1431 // Average out the timeouts so the sum is equal to the closest
1434 averagedTimeout = min / timeouts.length;
1436 averagedTimeout = max / timeouts.length;
1444 String.valueOf(timeouts.length),
1447 // Sum of all timeouts must not exceed this value.
1450 // If sum of timeouts within limits then finished.
1452 return timeouts;
1455 // Average out the timeouts so the sum is equal to the maximum
1457 averagedTimeout = maximumWait / timeouts.length;
1463 String.valueOf(timeouts.length),
1467 for (int index = 0; index < timeouts.length; index++) {
1468 timeouts[index] = averagedTimeout;
1471 return timeouts;
1483 Vector timeouts = null;
1486 timeouts = SrvLocHeader.parseCommaSeparatedListIn(sTimeouts, true);
1496 int[] iTOs = new int[timeouts.size()];
1498 for (Enumeration en = timeouts.elements(); en.hasMoreElements(); ) {