|
|||||||||||
| 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
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.
| Nested Class Summary | |
protected class |
DetachedHANamingService.AutomaticDiscovery
|
| Field Summary | |
protected String |
adGroupAddress
The autodiscovery multicast group |
protected int |
adGroupPort
The autodiscovery port |
protected DetachedHANamingService.AutomaticDiscovery |
autoDiscovery
|
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 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 HAPartition |
findHAPartitionWithName(String name)
|
String |
getAutoDiscoveryAddress()
Get the auto-discovery bootstrap multicast address. |
int |
getAutoDiscoveryGroup()
Get the Auto-discovery multicast port |
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 |
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()
Get the name of the underlying partition for the cluster to use. |
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. |
Object |
invoke(org.jboss.invocation.Invocation invocation)
Expose the Naming service via JMX to invokers. |
protected void |
listen()
|
void |
run()
|
void |
setAutoDiscoveryAddress(String adAddress)
Set the auto-discovery bootstrap multicast address. |
void |
setAutoDiscoveryGroup(int adGroup)
Set the Auto-discovery multicast port. |
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 |
setPartitionName(String partitionName)
Set the name of the underlying partition for the cluster to use. |
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, destroyService, 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, 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 String partitionName
protected InetAddress bindAddress
protected int backlog
protected int port
protected String adGroupAddress
protected int adGroupPort
protected DetachedHANamingService.AutomaticDiscovery autoDiscovery
| Constructor Detail |
public DetachedHANamingService()
| Method Detail |
public Map getMethodMap()
getMethodMap in interface DetachedHANamingServiceMBeanpublic String getPartitionName()
DetachedHANamingServiceMBean
getPartitionName in interface DetachedHANamingServiceMBeanpublic void setPartitionName(String partitionName)
DetachedHANamingServiceMBean
setPartitionName in interface DetachedHANamingServiceMBeanpublic javax.management.ObjectName getProxyFactoryObjectName()
DetachedHANamingServiceMBean
getProxyFactoryObjectName in interface DetachedHANamingServiceMBeanpublic void setProxyFactoryObjectName(javax.management.ObjectName proxyFactory)
DetachedHANamingServiceMBean
setProxyFactoryObjectName in interface DetachedHANamingServiceMBeanpublic void setPort(int p)
DetachedHANamingServiceMBean
setPort in interface DetachedHANamingServiceMBeanpublic int getPort()
DetachedHANamingServiceMBean
getPort in interface DetachedHANamingServiceMBeanpublic String getBindAddress()
DetachedHANamingServiceMBean
getBindAddress in interface DetachedHANamingServiceMBeanpublic void setBindAddress(String host) throws UnknownHostException
DetachedHANamingServiceMBean
setBindAddress in interface DetachedHANamingServiceMBeanUnknownHostExceptionpublic int getBacklog()
DetachedHANamingServiceMBean
getBacklog in interface DetachedHANamingServiceMBeanpublic void setBacklog(int backlog)
DetachedHANamingServiceMBean
setBacklog in interface DetachedHANamingServiceMBeanpublic String getAutoDiscoveryAddress()
DetachedHANamingServiceMBean
getAutoDiscoveryAddress in interface DetachedHANamingServiceMBeanpublic void setAutoDiscoveryAddress(String adAddress)
DetachedHANamingServiceMBean
setAutoDiscoveryAddress in interface DetachedHANamingServiceMBeanpublic int getAutoDiscoveryGroup()
DetachedHANamingServiceMBean
getAutoDiscoveryGroup in interface DetachedHANamingServiceMBeanpublic void setAutoDiscoveryGroup(int adGroup)
DetachedHANamingServiceMBean
setAutoDiscoveryGroup in interface DetachedHANamingServiceMBeanpublic void startService(HAPartition haPartition) throws Exception
Exception
protected void createService()
throws Exception
Exception
protected void startService()
throws Exception
Exception
protected void stopService()
throws Exception
Exceptionpublic Object invoke(org.jboss.invocation.Invocation invocation) throws Exception
invoke in interface DetachedHANamingServiceMBeaninvocation - A pointer to the invocation object
Exception - Failed to invoke method.public void run()
protected void listen()
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 | ||||||||||