|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ha.jndi.DetachedHANamingService
public class DetachedHANamingService
Management Bean for the protocol independent HA-JNDI service. This allows the naming service transport layer to be provided by a detached invoker service like JRMPInvokerHA + ProxyFactoryHA.
Field Summary | |
---|---|
protected org.jboss.ha.framework.interfaces.HAPartition |
clusterPartition
The HAPartition |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
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 |
Constructor Summary | |
---|---|
DetachedHANamingService()
|
Method Summary | |
---|---|
protected void |
createService()
|
protected void |
destroyService()
|
String |
getAutoDiscoveryAddress()
Get the auto-discovery bootstrap multicast address. |
String |
getAutoDiscoveryBindAddress()
Get the auto-discovery bootstrap multicast bind address. |
int |
getAutoDiscoveryGroup()
Get the Auto-discovery multicast port |
int |
getAutoDiscoveryTTL()
Get the TTL (time-to-live) for autodiscovery IP multicast packets |
int |
getBacklog()
Get the accept backlog for the bootstrap server socket |
String |
getBindAddress()
Get the bootstrap IP address on which the HA-JNDI stub is made available |
boolean |
getDiscoveryDisabled()
prevent autodiscovery service from starting |
org.jboss.ha.jndi.spi.DistributedTreeManager |
getDistributedTreeManager()
Get the DistributedTreeManager used by this service. |
org.jboss.ha.framework.interfaces.HAPartition |
getHAPartition()
Get the underlying partition used by this service. |
org.jnp.interfaces.Naming |
getLocalNamingInstance()
|
Map<Long,Method> |
getMethodMap()
Expose the Naming service interface mapping as a read-only attribute |
protected org.jnp.interfaces.Naming |
getNamingProxy()
Get the Naming proxy for the transport. |
String |
getPartitionName()
Gets the name of the partition used by this service. |
int |
getPort()
Get the bootstrap port on which the HA-JNDI stub is made available |
ObjectName |
getProxyFactoryObjectName()
Get the proxy factory service name used to create the Naming transport proxy. |
protected void |
initBootstrapListener()
Bring up the bootstrap lookup port for obtaining the naming service proxy |
Object |
invoke(Invocation invocation)
Expose the Naming service via JMX to invokers. |
void |
setAutoDiscoveryAddress(String adAddress)
Set the auto-discovery bootstrap multicast address. |
void |
setAutoDiscoveryBindAddress(String address)
Set the auto-discovery bootstrap multicast bind address. |
void |
setAutoDiscoveryGroup(int adGroup)
Set the Auto-discovery multicast port. |
void |
setAutoDiscoveryTTL(int ttl)
Set the TTL (time-to-live) for autodiscovery IP multicast packets |
void |
setBacklog(int backlog)
Set the accept backlog for the bootstrap server socket |
void |
setBindAddress(String host)
Set the bootstrap IP address on which the HA-JNDI stub is made available |
void |
setDiscoveryDisabled(boolean disable)
prevent autodiscovery service from starting |
void |
setDistributedTreeManager(org.jboss.ha.jndi.spi.DistributedTreeManager distributedTreeManager)
Sets the DistributedTreeManager used by this service. |
void |
setHAPartition(org.jboss.ha.framework.interfaces.HAPartition clusterPartition)
Sets the underlying partition used by this service. |
void |
setJNPServerSocketFactory(String factoryClassName)
|
void |
setLocalNamingInstance(org.jnp.interfaces.Naming localNamingInstance)
|
void |
setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
Set the thread pool used for the bootstrap and autodiscovery lookups |
void |
setPort(int p)
Set the bootstrap port on which the HA-JNDI stub is made available |
void |
setProxyFactoryObjectName(ObjectName proxyFactory)
Set the proxy factory service name used to create the Naming transport proxy. |
protected void |
startService()
|
protected void |
stopService()
|
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Field Detail |
---|
protected org.jboss.ha.framework.interfaces.HAPartition clusterPartition
Constructor Detail |
---|
public DetachedHANamingService()
Method Detail |
---|
public Map<Long,Method> getMethodMap()
getMethodMap
in interface DetachedHANamingServiceMBean
public String getPartitionName()
DetachedHANamingServiceMBean
getPartitionName
in interface DetachedHANamingServiceMBean
public org.jboss.ha.framework.interfaces.HAPartition getHAPartition()
DetachedHANamingServiceMBean
getHAPartition
in interface DetachedHANamingServiceMBean
public void setHAPartition(org.jboss.ha.framework.interfaces.HAPartition clusterPartition)
DetachedHANamingServiceMBean
setHAPartition
in interface DetachedHANamingServiceMBean
clusterPartition
- the partitionpublic org.jboss.ha.jndi.spi.DistributedTreeManager getDistributedTreeManager()
DetachedHANamingServiceMBean
getDistributedTreeManager
in interface DetachedHANamingServiceMBean
public void setDistributedTreeManager(org.jboss.ha.jndi.spi.DistributedTreeManager distributedTreeManager)
DetachedHANamingServiceMBean
setDistributedTreeManager
in interface DetachedHANamingServiceMBean
public org.jnp.interfaces.Naming getLocalNamingInstance()
public void setLocalNamingInstance(org.jnp.interfaces.Naming localNamingInstance)
public ObjectName getProxyFactoryObjectName()
DetachedHANamingServiceMBean
getProxyFactoryObjectName
in interface DetachedHANamingServiceMBean
public void setProxyFactoryObjectName(ObjectName proxyFactory)
DetachedHANamingServiceMBean
setProxyFactoryObjectName
in interface DetachedHANamingServiceMBean
public void setPort(int p)
DetachedHANamingServiceMBean
setPort
in interface DetachedHANamingServiceMBean
public int getPort()
DetachedHANamingServiceMBean
getPort
in interface DetachedHANamingServiceMBean
public String getBindAddress()
DetachedHANamingServiceMBean
getBindAddress
in interface DetachedHANamingServiceMBean
public void setBindAddress(String host) throws UnknownHostException
DetachedHANamingServiceMBean
setBindAddress
in interface DetachedHANamingServiceMBean
UnknownHostException
public int getBacklog()
DetachedHANamingServiceMBean
getBacklog
in interface DetachedHANamingServiceMBean
public void setBacklog(int backlog)
DetachedHANamingServiceMBean
setBacklog
in interface DetachedHANamingServiceMBean
public void setDiscoveryDisabled(boolean disable)
DetachedHANamingServiceMBean
setDiscoveryDisabled
in interface DetachedHANamingServiceMBean
public boolean getDiscoveryDisabled()
DetachedHANamingServiceMBean
getDiscoveryDisabled
in interface DetachedHANamingServiceMBean
public String getAutoDiscoveryAddress()
DetachedHANamingServiceMBean
getAutoDiscoveryAddress
in interface DetachedHANamingServiceMBean
public void setAutoDiscoveryAddress(String adAddress)
DetachedHANamingServiceMBean
setAutoDiscoveryAddress
in interface DetachedHANamingServiceMBean
public int getAutoDiscoveryGroup()
DetachedHANamingServiceMBean
getAutoDiscoveryGroup
in interface DetachedHANamingServiceMBean
public void setAutoDiscoveryGroup(int adGroup)
DetachedHANamingServiceMBean
setAutoDiscoveryGroup
in interface DetachedHANamingServiceMBean
public String getAutoDiscoveryBindAddress()
DetachedHANamingServiceMBean
getAutoDiscoveryBindAddress
in interface DetachedHANamingServiceMBean
public void setAutoDiscoveryBindAddress(String address) throws UnknownHostException
DetachedHANamingServiceMBean
setAutoDiscoveryBindAddress
in interface DetachedHANamingServiceMBean
UnknownHostException
public int getAutoDiscoveryTTL()
DetachedHANamingServiceMBean
getAutoDiscoveryTTL
in interface DetachedHANamingServiceMBean
public void setAutoDiscoveryTTL(int ttl)
DetachedHANamingServiceMBean
setAutoDiscoveryTTL
in interface DetachedHANamingServiceMBean
public void setJNPServerSocketFactory(String factoryClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException
ClassNotFoundException
InstantiationException
IllegalAccessException
public void setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
DetachedHANamingServiceMBean
setLookupPool
in interface DetachedHANamingServiceMBean
protected void createService() throws Exception
createService
in class ServiceMBeanSupport
Exception
protected void startService() throws Exception
startService
in class ServiceMBeanSupport
Exception
protected void stopService() throws Exception
stopService
in class ServiceMBeanSupport
Exception
protected void destroyService() throws Exception
destroyService
in class ServiceMBeanSupport
Exception
public Object invoke(Invocation invocation) throws Exception
invoke
in interface DetachedHANamingServiceMBean
invocation
- A pointer to the invocation object
Exception
- Failed to invoke method.protected void initBootstrapListener()
protected org.jnp.interfaces.Naming getNamingProxy() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |