org.objectweb.carol.cmi
Class ClusterStub

java.lang.Object
  extended by org.objectweb.carol.cmi.ClusterStub
All Implemented Interfaces:
java.rmi.Remote

public abstract class ClusterStub
extends java.lang.Object
implements java.rmi.Remote

Stubs to clustered objects extend this class. We avoid to pollute method namespace by defining no method.

Author:
Simon Nieuviarts

Field Summary
protected  Distributor distrib
          Distributor class
protected  boolean stubDebug
          Debug mode ?
 
Constructor Summary
protected ClusterStub(Distributor distrib, ServerStubList sl)
          Creates a new cluster stub
 
Method Summary
 Distributor getDistrib()
          Get the Distributor instance associated with this stub
 javax.ejb.Handle getHandle()
           
 javax.ejb.HomeHandle getHomeHandle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distrib

protected final Distributor distrib
Distributor class


stubDebug

protected final boolean stubDebug
Debug mode ?

Constructor Detail

ClusterStub

protected ClusterStub(Distributor distrib,
                      ServerStubList sl)
Creates a new cluster stub

Parameters:
distrib - distibutor class associated with this stub
sl - server stub list associated with this stub
Method Detail

getDistrib

public Distributor getDistrib()
Get the Distributor instance associated with this stub

Returns:
Distributor instance

getHomeHandle

public javax.ejb.HomeHandle getHomeHandle()
                                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getHandle

public javax.ejb.Handle getHandle()
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException