Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ha.framework » server » [javadoc | source]
org.jboss.ha.framework.server
public class: HARMIServerImpl [javadoc | source]
java.lang.Object
   org.jboss.ha.framework.server.HARMIServerImpl

All Implemented Interfaces:
    HARMIServer

This class is a server-side proxy for replicated RMI objects.
Nested Class Summary:
public class  HARMIServerImpl.RefreshProxiesHATarget   
Field Summary
protected  Object handler     
protected  Map invokerMap     
protected  Logger log     
protected  RemoteStub rmistub     
protected  Object stub     
protected  String key     
protected  Class intf     
protected  HARMIServerImpl.RefreshProxiesHATarget target     
Constructor:
 public HARMIServerImpl(HAPartition partition,
    String replicantName,
    Class intf,
    Object handler) throws Exception 
    Create a new HARMIServer implementation that will act as a RMI end-point for a specific server.
    Parameters:
    partition - HAPartition that will determine the cluster member
    replicantName - Name of the service using this HARMIServer
    intf - Class type under which should appear the RMI server dynamically built
    handler - Target object to which calls will be forwarded
    Throws:
    Exception - Thrown if any exception occurs during call forwarding
 public HARMIServerImpl(HAPartition partition,
    String replicantName,
    Class intf,
    Object handler,
    int port,
    RMIClientSocketFactory csf,
    RMIServerSocketFactory ssf) throws Exception 
 public HARMIServerImpl(HAPartition partition,
    String replicantName,
    Class intf,
    Object handler,
    int port,
    RMIClientSocketFactory clientSocketFactory,
    RMIServerSocketFactory serverSocketFactory,
    InetAddress bindAddress) throws Exception 
Method from org.jboss.ha.framework.server.HARMIServerImpl Summary:
createHAStub,   destroy,   getLocal,   getReplicants,   invoke
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ha.framework.server.HARMIServerImpl Detail:
 public Object createHAStub(LoadBalancePolicy policy) 
    Once a HARMIServer implementation exists, it is possible to ask for a stub that can, for example, be bound in JNDI for client use. Each client stub may incorporate a specific load-balancing policy.
 public  void destroy() 
 public Object getLocal() throws Exception 
 public List getReplicants() throws Exception 
 public HARMIResponse invoke(long clientViewId,
    MarshalledInvocation mi) throws Exception