org.jboss.ha.jndi
Interface HANamingServiceMBean

All Superinterfaces:
DetachedHANamingServiceMBean (src) , Service (src) , ServiceMBean (src)
All Known Implementing Classes:
HANamingService (src)

public interface HANamingServiceMBean
extends DetachedHANamingServiceMBean (src)

HA-JNDI service that provides JNDI services in a clustered way. Bindings are replicated cluster-wide. Lookups are: - first resolved locally in the cluster-wide tree - if not available, resolved in the local underlying JNDI tree - if not available, the query is broadcast on the cluster and each node determines if it has one in its local JNDI tree The HA-JNDI service also provides an automatic-discovery feature that allow clients to resolve the service through multicast.


Field Summary
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 java.lang.String getClientSocketFactory()
          Client socket factory to be used for client-server RMI invocations during JNDI queries
 int getRmiPort()
           
 java.lang.String getServerSocketFactory()
          Server socket factory to be used for client-server RMI invocations during JNDI queries
 void setClientSocketFactory(java.lang.String factoryClassName)
           
 void setRmiPort(int p)
          RmiPort to be used by the HA-JNDI service once bound.
 void setServerSocketFactory(java.lang.String factoryClassName)
           
 
Methods inherited from interface org.jboss.ha.jndi.DetachedHANamingServiceMBean (src)
getAutoDiscoveryAddress, getAutoDiscoveryBindAddress, getAutoDiscoveryGroup, getAutoDiscoveryTTL, getBacklog, getBindAddress, getDiscoveryDisabled, getMethodMap, getPartitionName, getPort, getProxyFactoryObjectName, invoke, setAutoDiscoveryAddress, setAutoDiscoveryBindAddress, setAutoDiscoveryGroup, setAutoDiscoveryTTL, setBacklog, setBindAddress, setDiscoveryDisabled, setLookupPool, setPartitionName, setPort, setProxyFactoryObjectName
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Method Detail

setRmiPort

public void setRmiPort(int p)
RmiPort to be used by the HA-JNDI service once bound. 0 => auto.


getRmiPort

public int getRmiPort()

getClientSocketFactory

public java.lang.String getClientSocketFactory()
Client socket factory to be used for client-server RMI invocations during JNDI queries


setClientSocketFactory

public void setClientSocketFactory(java.lang.String factoryClassName)
                            throws java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

getServerSocketFactory

public java.lang.String getServerSocketFactory()
Server socket factory to be used for client-server RMI invocations during JNDI queries


setServerSocketFactory

public void setServerSocketFactory(java.lang.String factoryClassName)
                            throws java.lang.ClassNotFoundException,
                                   java.lang.InstantiationException,
                                   java.lang.IllegalAccessException
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException