org.jboss.ha.jndi
Interface HANamingServiceMBean

All Superinterfaces:
DetachedHANamingServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
HANamingService

public interface HANamingServiceMBean
extends DetachedHANamingServiceMBean

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.

Version:
$Revision: 1.16.4.3 $

Revisions:

Author:
Bill Burke, Sacha Labourey

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

Method Detail

setRmiPort

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


getRmiPort

int getRmiPort()

getClientSocketFactory

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


setClientSocketFactory

void setClientSocketFactory(String factoryClassName)
                            throws ClassNotFoundException,
                                   InstantiationException,
                                   IllegalAccessException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

getServerSocketFactory

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


setServerSocketFactory

void setServerSocketFactory(String factoryClassName)
                            throws ClassNotFoundException,
                                   InstantiationException,
                                   IllegalAccessException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

setLoadBalancePolicy

void setLoadBalancePolicy(String policyName)
LoadBalancePolicy to be used by the HA-JNDI service.


getLoadBalancePolicy

String getLoadBalancePolicy()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.