org.jboss.ha.jndi
Interface HANamingServiceMBean

All Superinterfaces:
DetachedHANamingServiceMBean, Service, 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: 81001 $

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()
           
 String getRmiBindAddress()
           
 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 setRmiBindAddress(String address)
          RmiBindAddress to be used by the HA-JNDI service once bound.
 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, getDiscoveryDisabled, getDistributedTreeManager, getHAPartition, getMethodMap, getPartitionName, getPort, getProxyFactoryObjectName, invoke, setAutoDiscoveryAddress, setAutoDiscoveryBindAddress, setAutoDiscoveryGroup, setAutoDiscoveryTTL, setBacklog, setBindAddress, setDiscoveryDisabled, setDistributedTreeManager, setHAPartition, setLookupPool, 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()

setRmiBindAddress

void setRmiBindAddress(String address)
                       throws UnknownHostException
RmiBindAddress to be used by the HA-JNDI service once bound.

Parameters:
address -
Throws:
UnknownHostException

getRmiBindAddress

String getRmiBindAddress()

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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.