org.objectweb.carol.cmi

Class ClusterObject


public final class ClusterObject
extends java.lang.Object

Tell us if an object can be clustered or not.

Method Summary

static ClusterConfig
getClusterConfig(Remote obj)
Call getClusterConfig() on a cluster stub instead of this one whenever possible.
static Class
getClusterConfigClass(Remote obj)
static Class
getClusterStubClass(Class cl)

Method Details

getClusterConfig

public static ClusterConfig getClusterConfig(Remote obj)
            throws ClassNotFoundException,
                   NoSuchMethodException,
                   IllegalAccessException,
                   InvocationTargetException
Call getClusterConfig() on a cluster stub instead of this one whenever possible.

Returns:
A ClusterConfig object reflecting the static cluster configuration of stub's class.


getClusterConfigClass

public static Class getClusterConfigClass(Remote obj)
            throws ClassNotFoundException


getClusterStubClass

public static Class getClusterStubClass(Class cl)
            throws ClassNotFoundException

Returns:
The cluster stub class corresponding to the parameter class or null if this object has no cluster stub class.