|
||||||||||
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 String |
adGroupAddress
The autodiscovery multicast group |
protected int |
adGroupPort
The autodiscovery port |
protected org.jboss.ha.jndi.DetachedHANamingService.AutomaticDiscovery |
autoDiscovery
The runable task for discovery request packets |
protected int |
autoDiscoveryTTL
The autodiscovery Multicast reply TTL |
protected int |
backlog
The bootstrapSocket listen queue depth |
protected InetAddress |
bindAddress
The interface to bind to. |
protected ServerSocket |
bootstrapSocket
The jnp server socket through which the HAJNDI stub is vended |
protected ClusterPartitionMBean |
clusterPartition
The ClusterPartition with which we are associated. |
protected InetAddress |
discoveryBindAddress
The interface to bind the Multicast socket for autodiscovery to |
protected boolean |
discoveryDisabled
A flag indicating if autodiscovery should be disabled |
protected ServerSocketFactory |
jnpServerSocketFactory
An optional custom server socket factory for the bootstrap lookup |
protected String |
jnpServerSocketFactoryName
The class name of the optional custom JNP server socket factory |
protected org.jboss.util.threadpool.ThreadPool |
lookupPool
The thread pool used to handle jnp stub lookup requests |
protected Map |
marshalledInvocationMapping
The mapping from the long method hash to the Naming Method |
protected HAPartition |
partition
The HAPartition used for the state transfer service |
protected String |
partitionName
The partition name used to lookup the HAPartition binding |
protected int |
port
The jnp protocol listening port. |
protected org.jnp.interfaces.Naming |
stub
The protocol stub returned to clients by the bootstrap lookup |
protected HAJNDI |
theServer
The Naming interface server implementation |
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()
|
protected HAPartition |
findHAPartitionWithName(String name)
|
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 |
ClusterPartitionMBean |
getClusterPartition()
Get the underlying partition used by this service. |
boolean |
getDiscoveryDisabled()
prevent autodiscovery service from starting |
Map |
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 HAPartition used by this service. |
int |
getPort()
Get the bootstrap port on which the HA-JNDI stub is made available |
javax.management.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(org.jboss.invocation.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 |
setClusterPartition(ClusterPartitionMBean clusterPartition)
Sets the underlying partition used by this service. |
void |
setDiscoveryDisabled(boolean disable)
prevent autodiscovery service from starting |
void |
setJNPServerSocketFactory(String factoryClassName)
|
void |
setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
Set the thread pool used for the bootstrap and autodiscovery lookups |
void |
setPartitionName(String partitionName)
Sets the name of the HAPartition used by this service. |
void |
setPort(int p)
Set the bootstrap port on which the HA-JNDI stub is made available |
void |
setProxyFactoryObjectName(javax.management.ObjectName proxyFactory)
Set the proxy factory service name used to create the Naming transport proxy. |
protected void |
startService()
|
void |
startService(HAPartition haPartition)
|
protected void |
stopService()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
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 ServerSocket bootstrapSocket
protected HAJNDI theServer
protected Map marshalledInvocationMapping
protected org.jnp.interfaces.Naming stub
protected HAPartition partition
protected ClusterPartitionMBean clusterPartition
protected String partitionName
protected InetAddress bindAddress
protected int backlog
protected int port
protected String adGroupAddress
protected int adGroupPort
protected InetAddress discoveryBindAddress
protected org.jboss.ha.jndi.DetachedHANamingService.AutomaticDiscovery autoDiscovery
protected boolean discoveryDisabled
protected int autoDiscoveryTTL
protected ServerSocketFactory jnpServerSocketFactory
protected String jnpServerSocketFactoryName
protected org.jboss.util.threadpool.ThreadPool lookupPool
Constructor Detail |
---|
public DetachedHANamingService()
Method Detail |
---|
public Map getMethodMap()
getMethodMap
in interface DetachedHANamingServiceMBean
public ClusterPartitionMBean getClusterPartition()
DetachedHANamingServiceMBean
getClusterPartition
in interface DetachedHANamingServiceMBean
public void setClusterPartition(ClusterPartitionMBean clusterPartition)
DetachedHANamingServiceMBean
setClusterPartition
in interface DetachedHANamingServiceMBean
clusterPartition
- the partitionpublic String getPartitionName()
DetachedHANamingServiceMBean
getPartitionName
in interface DetachedHANamingServiceMBean
public void setPartitionName(String partitionName)
DetachedHANamingServiceMBean
setPartitionName
in interface DetachedHANamingServiceMBean
partitionName
- the name of the partitionpublic javax.management.ObjectName getProxyFactoryObjectName()
DetachedHANamingServiceMBean
getProxyFactoryObjectName
in interface DetachedHANamingServiceMBean
public void setProxyFactoryObjectName(javax.management.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
public void startService(HAPartition haPartition) throws Exception
Exception
protected void createService() throws Exception
createService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void stopService() throws Exception
stopService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void destroyService() throws Exception
destroyService
in class org.jboss.system.ServiceMBeanSupport
Exception
public Object invoke(org.jboss.invocation.Invocation invocation) throws Exception
invoke
in interface DetachedHANamingServiceMBean
invocation
- A pointer to the invocation object
Exception
- Failed to invoke method.protected void initBootstrapListener()
protected HAPartition findHAPartitionWithName(String name) throws Exception
Exception
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 |