org.nuiton.topia.service.servers
Class RMIServer

java.lang.Object
  extended by org.nuiton.topia.service.TopiaServiceServerAbstract
      extended by org.nuiton.topia.service.servers.RMIServer
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, java.lang.Runnable, TopiaServiceServer

public class RMIServer
extends TopiaServiceServerAbstract
implements java.lang.Runnable, java.lang.reflect.InvocationHandler

RMIServer.java

Version:
$Revision: 1558 $ Last update : $Date: 2009-06-11 06:53:44 +0200 (jeu., 11 juin 2009) $ By : $Author: tchemit $
Author:
chatellier

Field Summary
protected  boolean alreadyLaunched
          Server already launched
protected static int DEFAULT_PORT
          Port de rmiregistry
protected  java.rmi.registry.Registry registry
          instance de registry
 
Constructor Summary
RMIServer()
          Constructeur
RMIServer(int port)
          Constructeur
 
Method Summary
 void addService(java.lang.Class<? extends TopiaApplicationService> clazz)
          Ajoute un service devant etre gere.
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void launch()
          Lance le serveur
 void run()
           
 
Methods inherited from class org.nuiton.topia.service.TopiaServiceServerAbstract
invoke, setTopiaServiceProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

protected static final int DEFAULT_PORT
Port de rmiregistry

See Also:
Constant Field Values

registry

protected java.rmi.registry.Registry registry
instance de registry


alreadyLaunched

protected boolean alreadyLaunched
Server already launched

Constructor Detail

RMIServer

public RMIServer()
          throws java.rmi.RemoteException
Constructeur

Throws:
java.rmi.RemoteException - si la creation echoue

RMIServer

public RMIServer(int port)
          throws java.rmi.RemoteException
Constructeur

Throws:
java.rmi.RemoteException - si la creation echoue
Method Detail

addService

public void addService(java.lang.Class<? extends TopiaApplicationService> clazz)
Description copied from interface: TopiaServiceServer
Ajoute un service devant etre gere.

Specified by:
addService in interface TopiaServiceServer
Parameters:
clazz - le nom de l'interface.

run

public void run()
Specified by:
run in interface java.lang.Runnable

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

launch

public void launch()
Description copied from interface: TopiaServiceServer
Lance le serveur

Specified by:
launch in interface TopiaServiceServer


Copyright © 2004-2009 CodeLutin. All Rights Reserved.