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 to be clustered and if it has to be advertised at
bind().
|
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 void |
main(java.lang.String[] args)
For test purposes
|
public static java.lang.Boolean clusterEquivAtBind(java.rmi.Remote obj) throws StubConfigException
StubConfigException
public static java.lang.String clusterEquivAtExport(java.rmi.Remote obj) throws StubConfigException
StubConfigException
- 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 void main(java.lang.String[] args) throws java.lang.Exception
args
- program argsjava.lang.Exception
- if an error occurs