incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: incubator-altrmi/src/java/org/apache/altrmi/server/impl/rmi RmiServer.java
Date Sun, 03 Aug 2003 22:37:30 GMT
hammant     2003/08/03 15:37:30

  Modified:    src/java/org/apache/altrmi/server/impl/rmi RmiServer.java
  Log:
  String (bind to) cannot be passed to RMI system for use. It is port only. More constructors
  
  Revision  Changes    Path
  1.4       +31 -20    incubator-altrmi/src/java/org/apache/altrmi/server/impl/rmi/RmiServer.java
  
  Index: RmiServer.java
  ===================================================================
  RCS file: /home/cvs/incubator-altrmi/src/java/org/apache/altrmi/server/impl/rmi/RmiServer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RmiServer.java	15 Jul 2003 07:10:07 -0000	1.3
  +++ RmiServer.java	3 Aug 2003 22:37:30 -0000	1.4
  @@ -89,10 +89,7 @@
        * The invocation adapter
        */
       private RmiInovcationAdapter m_rmiInovcationAdapter;
  -    /**
  -     * The host
  -     */
  -    private String m_host;
  +
       /**
        * The port
        */
  @@ -102,36 +99,51 @@
        */
       private Registry m_registry;
   
  -
       /**
        * Constructor a RmiServer with a preexiting invocation handler.
        *
  -     * @param classRetriever
  -     * @param authenticator
  +     * @param invocationHandlerAdaptor
        * @param serverMonitor
        * @param threadPool
        * @param contextFactory
  -     * @param host
        * @param port
        */
  -    public RmiServer(ClassRetriever classRetriever,
  -            Authenticator authenticator, ServerMonitor serverMonitor,
  +    public RmiServer(InvocationHandlerAdaptor invocationHandlerAdaptor,
  +                     ServerMonitor serverMonitor,
                        ThreadPool threadPool, ServerSideClientContextFactory contextFactory,
  -                     String host, int port)
  +                     int port)
       {
  -        super(new InvocationHandlerAdaptor(classRetriever, authenticator,serverMonitor,
contextFactory),
  -                serverMonitor, threadPool, contextFactory);
  -        m_host = host;
  +        super(invocationHandlerAdaptor, serverMonitor, threadPool, contextFactory);
           m_port = port;
       }
   
  -    public static class WithSimpleDefaults extends RmiServer
  +    public static class WithNoInvocationHandler extends RmiServer
       {
           /**
  -         * @param host
  +         *
  +         * @param classRetriever
  +         * @param authenticator
  +         * @param serverMonitor
  +         * @param threadPool
  +         * @param contextFactory
            * @param port
            */
  -        public WithSimpleDefaults(String host, int port)
  +		public WithNoInvocationHandler(ClassRetriever classRetriever,
  +            Authenticator authenticator, ServerMonitor serverMonitor,
  +                     ThreadPool threadPool, ServerSideClientContextFactory contextFactory,
  +                     int port)
  +		{
  +            super(new InvocationHandlerAdaptor(classRetriever, authenticator,serverMonitor,
contextFactory),
  +                serverMonitor, threadPool, contextFactory, port);
  +		}
  +	}
  +
  +    public static class WithSimpleDefaults extends WithNoInvocationHandler
  +    {
  +        /**
  +         * @param port
  +         */
  +        public WithSimpleDefaults(int port)
           {
               super(
                       new PlainClassRetriever(),
  @@ -139,10 +151,9 @@
                       new NullServerMonitor(),
                       new DefaultThreadPool(),
                       new DefaultServerSideClientContextFactory(),
  -                    host, port);
  +                    port);
           }
       }
  -
   
       /**
        * Start the server.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message