1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 package org.sentrysoftware.wbem.sblim.slp.internal;
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 import java.util.Locale;
52
53 import org.sentrysoftware.wbem.sblim.slp.ServiceType;
54
55
56
57
58
59
60
61
62
63 public interface SLPDefaults {
64
65
66
67
68 public static final String ALL_AUTHORITIES = "*";
69
70
71
72
73 public static final String BROADCAST_ADDRESS = "255.255.255.255";
74
75
76
77
78 public static final String[] CONF_URLS = {
79 "file:sblim-slp-client2.properties",
80 "file:" + System.getProperty("user.home") + System.getProperty("file.separator")
81 + "sblim-slp-client2.properties",
82 "file:/etc/java/sblim-slp-client2.properties", "file:/etc/sblim-slp-client2.properties" };
83
84
85
86
87 public static final int DA_DISCOVERY_TIMEOUTS[] = { 200, 200, 200, 200, 300, 400 };
88
89
90
91
92 public static final ServiceType DA_SERVICE_TYPE = new ServiceType("service:directory-agent");
93
94
95
96
97 public static final int DATAGRAM_TIMEOUTS[] = { 100, 200, 300 };
98
99
100
101
102 public static final String DEFAULT_SCOPE = "default";
103
104
105
106
107 public static final int ACTIVE_DISCOVERY_GRANULARITY = 900;
108
109
110
111
112 public static final int ACTIVE_DISCOVERY_INTERVAL = 900;
113
114
115
116
117 public static final Locale LOCALE = new Locale("en", "");
118
119
120
121
122 public static final String LOG_FILE = "slp.log";
123
124
125
126
127 public static final String LOOPBACK_ADDRESS_V4 = "127.0.0.1";
128
129
130
131
132 public static final String LOOPBACK_ADDRESS_V6 = "::1";
133
134
135
136
137 public static final String LOOPBACK_NAME = "localhost";
138
139
140
141
142 public static final int MAXIMUM_RESULTS = 0x7fffffff;
143
144
145
146
147 public static final int MTU = 1400;
148
149
150
151
152 public static final String MULTICAST_ADDRESS = "239.255.255.253";
153
154
155
156
157 public static final int MULTICAST_MAXIMUM_WAIT = 2000;
158
159
160
161
162 public static final int MULTICAST_RADIUS = 255;
163
164
165
166
167 public static final int MULTICAST_TIMEOUTS[] = { 200, 200, 200, 200, 300, 400 };
168
169
170
171
172 public static final ServiceType SA_SERVICE_TYPE = new ServiceType("service:service-agent");
173
174
175
176
177 public static final int SERVER_SOCKET_QUEUE_LENGTH = 10;
178
179
180
181
182 public static final int SLP_PORT = 427;
183
184
185
186
187 public static final boolean USE_IPV6 = true;
188
189
190
191
192 public static final boolean USE_IPV4 = true;
193
194
195
196
197 public static final int SLP_VERSION = 2;
198
199
200
201
202 public static final int TCP_TIMEOUT = 20000;
203
204
205
206
207 public static final String ENCODING = "UTF-8";
208
209
210
211
212 public static final int DACACHE_TIMEOUT = 90;
213
214
215
216
217 public static final int IPV6_MULTICAST_SCOPE = 5;
218
219 }