public class StubConfig
extends java.lang.Object
Distributor| Modifier and Type | Method and Description |
|---|---|
static void |
checkClusterStub(java.lang.Class remoteObjClass,
ClusterStub cs)
Check the compatibility between the cluster stub and a remote object class
|
static java.lang.Boolean |
clusterEquivAtBind(java.rmi.Remote obj)
Test if the object is a CMI stub
|
static java.lang.String |
clusterEquivAtExport(java.rmi.Remote obj)
Test if the object is to be clustered and if it has to be advertised at
export().
|
static ClusterStub |
instanciateClusterStub(java.lang.Class remoteObjClass,
ServerStubList stubList) |
static ClusterStub |
instanciateClusterStub(java.lang.Class remoteObjClass,
StubData stubData)
Create a ClusterStub with only one StubData
|
static void |
main(java.lang.String[] args)
For test purposes
|
public static java.lang.Boolean clusterEquivAtBind(java.rmi.Remote obj)
throws StubConfigException
StubConfigExceptionpublic static java.lang.String clusterEquivAtExport(java.rmi.Remote obj)
throws StubConfigException
obj - remote objectStubConfigException - if config errorpublic static void checkClusterStub(java.lang.Class remoteObjClass,
ClusterStub cs)
throws java.rmi.RemoteException
remoteObjClass - remote object classcs - cluster stubjava.rmi.RemoteException - if the stub aren't compliantpublic static ClusterStub instanciateClusterStub(java.lang.Class remoteObjClass, ServerStubList stubList) throws StubConfigException
remoteObjClass - remote object classstubList - stubs listStubConfigException - if exception during instanciation of the stub classpublic static ClusterStub instanciateClusterStub(java.lang.Class remoteObjClass, StubData stubData) throws StubConfigException
remoteObjClass - remote object classstubData - stub dataStubConfigException - if exception during instanciation of the stub classpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - program argsjava.lang.Exception - if an error occurs