org.ow2.carol.cmi.rpc
Class CMIProxyFactory

java.lang.Object
  extended by org.ow2.carol.cmi.rpc.CMIProxyFactory

@ThreadSafe
public final class CMIProxyFactory
extends java.lang.Object

Factory of CMI proxy which intercepts the remote method invocation on clustered objects.

Author:
The new CMI team

Method Summary
static org.ow2.carol.cmi.rpc.CMIProxy newCMIProxy(org.ow2.carol.cmi.controller.common.ClusterViewManager clusterViewManager, java.lang.String objectName, java.lang.String protocolName)
          Returns a new CMI proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newCMIProxy

public static org.ow2.carol.cmi.rpc.CMIProxy newCMIProxy(org.ow2.carol.cmi.controller.common.ClusterViewManager clusterViewManager,
                                                         java.lang.String objectName,
                                                         java.lang.String protocolName)
                                                  throws CMIProxyFactoryException,
                                                         org.ow2.carol.cmi.reference.ObjectNotFoundException
Returns a new CMI proxy.

Parameters:
clusterViewManager - a manager of the cluster view
objectName - a name of object
protocolName - a name of protocol
Returns:
a new CMI proxy
Throws:
CMIProxyFactoryException - if we get interface for the given object
org.ow2.carol.cmi.reference.ObjectNotFoundException - if none object has the given name


Copyright © 2008 OW2 Consortium. All Rights Reserved.