|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.dist.Distd | +--org.objectweb.jac.core.dist.rmi.RMIDistd
RMIDistd is a jac daemon that supports the RMI communication protocol. Daemons hold containers (only one for the moment) which themselves hold remote objects.
Field Summary |
Fields inherited from class org.objectweb.jac.core.dist.Distd |
containers, flags, inputCount, localContainerName, options, outputCount, referenceContainerName, verbose |
Constructor Summary | |
RMIDistd(String[] args)
The is the main constructor. |
Method Summary | |
void |
init()
This method initializes the RMI communication protocol. |
static void |
main(String[] args)
|
protected RemoteContainer |
newContainer(String name)
This method creates a new container and returns it. |
protected RemoteContainer |
newContainer(String name,
String className)
This method creates a new container, instantiates a given class, and returns the container. |
protected void |
registerContainer(RMIRemoteContainer container,
String name)
This method register a container in the RMI registry. |
void |
run()
This method enters the event loop of the underlying communication protocol. |
Methods inherited from class org.objectweb.jac.core.dist.Distd |
containsContainer, getFullHostName, getLocalContainerName, parseArguments, stringArrayToHashtable, usage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RMIDistd(String[] args)
args
- command line argumentsMethod Detail |
public void init()
init
in class Distd
protected RemoteContainer newContainer(String name)
newContainer
in class Distd
name
- the container name
protected RemoteContainer newContainer(String name, String className) throws RuntimeException
newContainer
in class Distd
name
- the container nameclassName
- the name of the class to instantiate
RuntimeException
protected void registerContainer(RMIRemoteContainer container, String name) throws RemoteException
container
- the container referencename
- the container name
RemoteException
public void run()
run
in class Distd
public static void main(String[] args)
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |