< prev index next >

src/jdk.naming.dns/share/classes/module-info.java

Print this page


   1 /*
   2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
   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 
  26 /**
  27  * Provides the implementation of the DNS Java Naming provider.
  28  *






























  29  * @provides javax.naming.spi.InitialContextFactory

  30  * @moduleGraph
  31  * @since 9
  32  */
  33 module jdk.naming.dns {
  34     requires java.naming;
  35 
  36     // temporary export until NamingManager.getURLContext uses services
  37     exports com.sun.jndi.url.dns to java.naming;
  38 
  39     provides javax.naming.spi.InitialContextFactory with
  40         com.sun.jndi.dns.DnsContextFactory;
  41 }
   1 /*
   2  * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
   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 
  26 /**
  27  * Provides the implementation of the DNS Java Naming provider.
  28  *
  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  *
  59  * @provides javax.naming.spi.InitialContextFactory
  60  *
  61  * @moduleGraph
  62  * @since 9
  63  */
  64 module jdk.naming.dns {
  65     requires java.naming;
  66 
  67     // temporary export until NamingManager.getURLContext uses services
  68     exports com.sun.jndi.url.dns to java.naming;
  69 
  70     provides javax.naming.spi.InitialContextFactory with
  71         com.sun.jndi.dns.DnsContextFactory;
  72 }
< prev index next >