Save This Page
Home » openjdk-7 » java » rmi » registry » [javadoc | source]
    1   /*
    2    * Copyright 1997-2004 Sun Microsystems, Inc.  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.  Sun designates this
    8    * particular file as subject to the "Classpath" exception as provided
    9    * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
   22    * CA 95054 USA or visit www.sun.com if you need additional information or
   23    * have any questions.
   24    */
   25   
   26   package java.rmi.registry;
   27   
   28   import java.rmi.RemoteException;
   29   import java.rmi.UnknownHostException;
   30   
   31   /**
   32    * <code>RegistryHandler</code> is an interface used internally by the RMI
   33    * runtime in previous implementation versions.  It should never be accessed
   34    * by application code.
   35    *
   36    * @author  Ann Wollrath
   37    * @since   JDK1.1
   38    * @deprecated no replacement
   39    */
   40   @Deprecated
   41   public interface RegistryHandler {
   42   
   43       /**
   44        * Returns a "stub" for contacting a remote registry
   45        * on the specified host and port.
   46        *
   47        * @deprecated no replacement.  As of the Java 2 platform v1.2, RMI no
   48        * longer uses the <code>RegistryHandler</code> to obtain the registry's
   49        * stub.
   50        * @param host name of remote registry host
   51        * @param port remote registry port
   52        * @return remote registry stub
   53        * @throws RemoteException if a remote error occurs
   54        * @throws UnknownHostException if unable to resolve given hostname
   55        */
   56       @Deprecated
   57       Registry registryStub(String host, int port)
   58           throws RemoteException, UnknownHostException;
   59   
   60       /**
   61        * Constructs and exports a Registry on the specified port.
   62        * The port must be non-zero.
   63        *
   64        * @deprecated no replacement.  As of the Java 2 platform v1.2, RMI no
   65        * longer uses the <code>RegistryHandler</code> to obtain the registry's
   66        * implementation.
   67        * @param port port to export registry on
   68        * @return registry stub
   69        * @throws RemoteException if a remote error occurs
   70        */
   71       @Deprecated
   72       Registry registryImpl(int port) throws RemoteException;
   73   }

Save This Page
Home » openjdk-7 » java » rmi » registry » [javadoc | source]