author | roland |
Tue, 22 Oct 2019 11:55:58 +0200 | |
changeset 58960 | f79a8217d4c9 |
parent 58308 | b7192797f434 |
permissions | -rw-r--r-- |
36511 | 1 |
/* |
58308 | 2 |
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. |
36511 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
44417
a431edba1629
8173303: Add module-subgraph images to main platform documentation
mchung
parents:
42338
diff
changeset
|
26 |
/** |
45528
1e8c2f062ad3
8181639: Add tool and services information to module summary
mchung
parents:
44417
diff
changeset
|
27 |
* Provides the implementation of the DNS Java Naming provider. |
44417
a431edba1629
8173303: Add module-subgraph images to main platform documentation
mchung
parents:
42338
diff
changeset
|
28 |
* |
58308 | 29 |
* <h2>Environment Properties</h2> |
30 |
* |
|
31 |
* <p> The following JNDI environment properties may be used when creating |
|
32 |
* the initial context. |
|
33 |
* |
|
34 |
* <ul> |
|
35 |
* <li>com.sun.jndi.dns.timeout.initial</li> |
|
36 |
* <li>com.sun.jndi.dns.timeout.retries</li> |
|
37 |
* </ul> |
|
38 |
* |
|
39 |
* <p> These properties are used to alter the timeout-related defaults that the |
|
40 |
* DNS provider uses when submitting queries. The DNS provider submits queries |
|
41 |
* using the following exponential backoff algorithm. The provider submits a |
|
42 |
* query to a DNS server and waits for a response to arrive within a timeout |
|
43 |
* period (1 second by default). If it receives no response within the timeout |
|
44 |
* period, it queries the next server, and so on. If the provider receives no |
|
45 |
* response from any server, it doubles the timeout period and repeats the |
|
46 |
* process of submitting the query to each server, up to a maximum number of |
|
47 |
* retries (4 by default). |
|
48 |
* |
|
49 |
* <p> The {@code com.sun.jndi.dns.timeout.initial} property, if set, specifies |
|
50 |
* the number of milliseconds to use as the initial timeout period (i.e., before |
|
51 |
* any doubling). If this property has not been set, the default initial timeout |
|
52 |
* is 1000 milliseconds. |
|
53 |
* |
|
54 |
* <p> The {@code com.sun.jndi.dns.timeout.retries} property, if set, specifies |
|
55 |
* the number of times to retry each server using the exponential backoff |
|
56 |
* algorithm described previously. If this property has not been set, the |
|
57 |
* default number of retries is 4. |
|
58 |
* |
|
45528
1e8c2f062ad3
8181639: Add tool and services information to module summary
mchung
parents:
44417
diff
changeset
|
59 |
* @provides javax.naming.spi.InitialContextFactory |
58308 | 60 |
* |
44417
a431edba1629
8173303: Add module-subgraph images to main platform documentation
mchung
parents:
42338
diff
changeset
|
61 |
* @moduleGraph |
a431edba1629
8173303: Add module-subgraph images to main platform documentation
mchung
parents:
42338
diff
changeset
|
62 |
* @since 9 |
a431edba1629
8173303: Add module-subgraph images to main platform documentation
mchung
parents:
42338
diff
changeset
|
63 |
*/ |
36511 | 64 |
module jdk.naming.dns { |
65 |
requires java.naming; |
|
66 |
||
42338
a60f280f803c
8169069: Module system implementation refresh (11/2016)
alanb
parents:
36967
diff
changeset
|
67 |
// temporary export until NamingManager.getURLContext uses services |
a60f280f803c
8169069: Module system implementation refresh (11/2016)
alanb
parents:
36967
diff
changeset
|
68 |
exports com.sun.jndi.url.dns to java.naming; |
36511 | 69 |
|
45654
5ff2edfa03fc
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45528
diff
changeset
|
70 |
provides javax.naming.spi.InitialContextFactory with |
5ff2edfa03fc
8182416: Clean up module-info.java like move requires transitive adjacent to exports
mchung
parents:
45528
diff
changeset
|
71 |
com.sun.jndi.dns.DnsContextFactory; |
36511 | 72 |
} |