|
|||||||||||
| 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)
Registers 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 arguments| Method Detail |
public void init()
init in class Distd
protected RemoteContainer newContainer(String name)
throws Exception
newContainer in class Distdname - the container name
Exception
protected RemoteContainer newContainer(String name,
String className)
throws Exception
newContainer in class Distdname - the container nameclassName - the name of the class to instantiate
Exception
protected void registerContainer(RMIRemoteContainer container,
String name)
throws RemoteException
container - the container referencename - the container name
RemoteExceptionpublic void run()
run in class Distdpublic static void main(String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||