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:
InvocationHandler, Runnable, TopiaServiceServer

public class RMIServer
extends TopiaServiceServerAbstract
implements Runnable, InvocationHandler

RMIServer.java

Version:
$Revision: 1715 $ Last update : $Date: 2009-12-15 01:26:16 +0100 (mar., 15 déc. 2009) $ By : $Author: tchemit $
Author:
chatellier

Field Summary
protected  boolean alreadyLaunched
          Server already launched
protected static int DEFAULT_PORT
          Port de rmiregistry
protected  Registry registry
          instance de registry
 
Constructor Summary
RMIServer()
          Constructeur
RMIServer(int port)
          Constructeur
 
Method Summary
 void addService(Class<? extends TopiaApplicationService> clazz)
          Ajoute un service devant etre gere.
 Object invoke(Object proxy, Method method, 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 Registry registry
instance de registry


alreadyLaunched

protected boolean alreadyLaunched
Server already launched

Constructor Detail

RMIServer

public RMIServer()
          throws RemoteException
Constructeur

Throws:
RemoteException - si la creation echoue

RMIServer

public RMIServer(int port)
          throws RemoteException
Constructeur

Throws:
RemoteException - si la creation echoue
Method Detail

addService

public void addService(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 Runnable

invoke

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

launch

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

Specified by:
launch in interface TopiaServiceServer


Copyright © 2004-2010 CodeLutin. All Rights Reserved.