1 /*
2 SLPLimits.java
3
4 (C) Copyright IBM Corp. 2006, 2009
5
6 THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
7 ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
8 CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
9
10 You can obtain a current copy of the Eclipse Public License from
11 http://www.opensource.org/licenses/eclipse-1.0.php
12
13 @author : Alexander Wolf-Reber, IBM a.wolf-reber@de.ibm.com
14 *
15 * Change History
16 * Flag Date Prog Description
17 *-------------------------------------------------------------------------------
18 * 1535793 2006-09-14 lupusalex Fix&Integrate CIM&SLP configuration classes
19 * 2003590 2008-06-30 blaschke-oss Change licensing from CPL to EPL
20 * 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1)
21 * 2907527 2009-12-02 blaschke-oss Fix SLP properties issues
22 */
23 package org.metricshub.wbem.sblim.slp.internal;
24
25 /*-
26 * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲
27 * WBEM Java Client
28 * ჻჻჻჻჻჻
29 * Copyright 2023 - 2025 MetricsHub
30 * ჻჻჻჻჻჻
31 * Licensed under the Apache License, Version 2.0 (the "License");
32 * you may not use this file except in compliance with the License.
33 * You may obtain a copy of the License at
34 *
35 * http://www.apache.org/licenses/LICENSE-2.0
36 *
37 * Unless required by applicable law or agreed to in writing, software
38 * distributed under the License is distributed on an "AS IS" BASIS,
39 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40 * See the License for the specific language governing permissions and
41 * limitations under the License.
42 * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱
43 */
44
45 /**
46 * SLPLimits
47 *
48 */
49 public interface SLPLimits {
50 /**
51 * MAX_DISCOVERY_GRANULARITY
52 */
53 public static final int MAX_DISCOVERY_GRANULARITY = 10800;
54
55 /**
56 * MAX_DISCOVERY_INTERVAL
57 */
58 public static final int MAX_DISCOVERY_INTERVAL = 3 * 60 * 60; // 3h
59
60 /**
61 * MAX_MTU
62 */
63 public static final int MAX_MTU = 8192;
64
65 /**
66 * MAX_MULTICAST_MAXIMUM_WAIT
67 */
68 public static final int MAX_MULTICAST_MAXIMUM_WAIT = 60000;
69
70 /**
71 * MAX_MULTICAST_RADIUS
72 */
73 public static final int MAX_MULTICAST_RADIUS = 255;
74
75 /**
76 * MAX_SERVER_SOCKET_QUEUE_LENGTH
77 */
78 public static final int MAX_SERVER_SOCKET_QUEUE_LENGTH = 0x7fffffff;
79
80 /**
81 * MAX_TCP_TIMEOUT
82 */
83 public static final int MAX_TCP_TIMEOUT = 360000;
84
85 /**
86 * MIN_DISCOVERY_GRANULARITY
87 */
88 public static final int MIN_DISCOVERY_GRANULARITY = 0;
89
90 /**
91 * MIN_DISCOVERY_INTERVAL
92 */
93 public static final int MIN_DISCOVERY_INTERVAL = 0;
94
95 /**
96 * MIN_MTU
97 */
98 public static final int MIN_MTU = 128;
99
100 /**
101 * MIN_MULTICAST_MAXIMUM_WAIT
102 */
103 public static final int MIN_MULTICAST_MAXIMUM_WAIT = 1000;
104
105 /**
106 * MIN_MULTICAST_RADIUS
107 */
108 public static final int MIN_MULTICAST_RADIUS = 1;
109
110 /**
111 * MIN_SERVER_SOCKET_QUEUE_LENGTH
112 */
113 public static final int MIN_SERVER_SOCKET_QUEUE_LENGTH = 0;
114
115 /**
116 * MIN_TCP_TIMEOUT
117 */
118 public static final int MIN_TCP_TIMEOUT = 100;
119 }