|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--org.objectweb.jac.core.dist.rmi.RMIRemoteContainer
RMIRemoteContainer is a container for remote objects that can be accessed with the RMI communication protocol. RMIRemoteContainer delegates most of his job to a RemoteContainer. RMIRemoteContainer instances are created by RMIDistd.
| Field Summary | |
protected RemoteContainer |
delegate
The remote container to which most of the job is delegated. |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
RMIRemoteContainer()
Create a new container. |
|
RMIRemoteContainer(boolean verbose)
Create a new container. |
|
RMIRemoteContainer(String className,
boolean verbose)
Create a new container. |
|
| Method Summary | |
RemoteRef |
bindTo(String name)
Returns a remote reference on the object corresponding to the given name. |
void |
copy(String name,
int index,
String[] fields,
byte[] state,
byte[] collaboration)
Copy a state into a base object. |
byte[] |
getByteCodeFor(String className)
|
RemoteContainer |
getDelegate()
Getter method for the delegate field. |
int |
instantiates(String name,
String className,
Object[] args,
String[] fields,
byte[] state,
byte[] collaboration)
This method instantiates a className object. |
byte[] |
invoke(int index,
String methodName,
byte[] methodArgs,
byte[] collaboration)
Invoke a method on a base object. |
byte[] |
invokeRoleMethod(int index,
String methodName,
byte[] methodArgs,
byte[] collaboration)
|
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected RemoteContainer delegate
| Constructor Detail |
public RMIRemoteContainer()
throws RemoteException
public RMIRemoteContainer(boolean verbose)
throws RemoteException
verbose - true if information messages are to be printed.
public RMIRemoteContainer(String className,
boolean verbose)
throws RemoteException
className - the name of a class to instantiateverbose - true if information messages are to be printed.| Method Detail |
public RemoteContainer getDelegate()
public int instantiates(String name,
String className,
Object[] args,
String[] fields,
byte[] state,
byte[] collaboration)
throws RemoteException
instantiates in interface RMIRemoteContainerInterfclassName - the class name to instantiateargs - initialization arguments for the instantiationfields - the object fields that are part of the statestate - the state to copycollaboration - the collaboration of the client
RemoteException
public void copy(String name,
int index,
String[] fields,
byte[] state,
byte[] collaboration)
throws RemoteException
copy in interface RMIRemoteContainerInterfindex - the base object index (see org.objectweb.jac.core.JacObject)fields - the object fields that are part of the statestate - the state to copycollaboration - the collaboration of the client
RemoteException
public byte[] invoke(int index,
String methodName,
byte[] methodArgs,
byte[] collaboration)
throws RemoteException
invoke in interface RMIRemoteContainerInterfindex - the callee index (see org.objectweb.jac.core.JacObject)methodName - the callee method namemethodArgs - the callee method arguments
RemoteException
public byte[] invokeRoleMethod(int index,
String methodName,
byte[] methodArgs,
byte[] collaboration)
throws RemoteException
invokeRoleMethod in interface RMIRemoteContainerInterfRemoteException
public byte[] getByteCodeFor(String className)
throws RemoteException
getByteCodeFor in interface RMIRemoteContainerInterfRemoteException
public RemoteRef bindTo(String name)
throws RemoteException
bindTo in interface RMIRemoteContainerInterfRemoteException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||