|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.service.TopiaServiceServerAbstract
org.nuiton.topia.service.servers.RMIServer
public class RMIServer
RMIServer.java
| 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 |
|---|
protected static final int DEFAULT_PORT
protected java.rmi.registry.Registry registry
protected boolean alreadyLaunched
| Constructor Detail |
|---|
public RMIServer()
throws java.rmi.RemoteException
java.rmi.RemoteException - si la creation echoue
public RMIServer(int port)
throws java.rmi.RemoteException
java.rmi.RemoteException - si la creation echoue| Method Detail |
|---|
public void addService(java.lang.Class<? extends TopiaApplicationService> clazz)
TopiaServiceServer
addService in interface TopiaServiceServerclazz - le nom de l'interface.public void run()
run in interface java.lang.Runnable
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic void launch()
TopiaServiceServer
launch in interface TopiaServiceServer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||