|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
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.
| Field Summary | |
protected java.lang.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 java.net.InetAddress |
bindAddress
The interface to bind to. |
protected java.net.ServerSocket |
bootstrapSocket
The jnp server socket through which the HAJNDI stub is vended |
protected java.net.InetAddress |
discoveryBindAddress
The interface to bind the Multicast socket for autodiscovery to |
protected boolean |
discoveryDisabled
A flag indicating if autodiscovery should be disabled |
protected javax.net.ServerSocketFactory |
jnpServerSocketFactory
An optional custom server socket factory for the bootstrap lookup |
protected java.lang.String |
jnpServerSocketFactoryName
The class name of the optional custom JNP server socket factory |
protected ThreadPool (src) |
lookupPool
The thread pool used to handle jnp stub lookup requests |
protected java.util.Map |
marshalledInvocationMapping
The mapping from the long method hash to the Naming Method |
protected HAPartition (src) |
partition
The HAPartition used for the state transfer service |
protected java.lang.String |
partitionName
The partition name used to lookup the HAPartition binding |
protected int |
port
The jnp protocol listening port. |
protected Naming (src) |
stub
The protocol stub returned to clients by the bootstrap lookup |
protected HAJNDI (src) |
theServer
The Naming interface server implementation |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean (src) |
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()
Sub-classes should override this method to provide custum 'create' logic. |
protected HAPartition (src) |
findHAPartitionWithName(java.lang.String name)
|
java.lang.String |
getAutoDiscoveryAddress()
Get the auto-discovery bootstrap multicast address. |
java.lang.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 |
java.lang.String |
getBindAddress()
Get the bootstrap IP address on which the HA-JNDI stub is made available |
boolean |
getDiscoveryDisabled()
prevent autodiscovery service from starting |
java.util.Map |
getMethodMap()
Expose the Naming service interface mapping as a read-only attribute |
protected Naming (src) |
getNamingProxy()
Get the Naming proxy for the transport. |
java.lang.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 |
ObjectName (src) |
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 |
java.lang.Object |
invoke(Invocation (src) invocation)
Expose the Naming service via JMX to invokers. |
void |
setAutoDiscoveryAddress(java.lang.String adAddress)
Set the auto-discovery bootstrap multicast address. |
void |
setAutoDiscoveryBindAddress(java.lang.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(java.lang.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 |
setJNPServerSocketFactory(java.lang.String factoryClassName)
|
void |
setLookupPool(BasicThreadPoolMBean (src) poolMBean)
Set the thread pool used for the bootstrap and autodiscovery lookups |
void |
setPartitionName(java.lang.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(ObjectName (src) proxyFactory)
Set the proxy factory service name used to create the Naming transport proxy. |
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
void |
startService(HAPartition (src) haPartition)
|
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
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 (src) |
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 (src) |
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
| Field Detail |
protected java.net.ServerSocket bootstrapSocket
protected HAJNDI (src) theServer
protected java.util.Map marshalledInvocationMapping
protected Naming (src) stub
protected HAPartition (src) partition
protected java.lang.String partitionName
protected java.net.InetAddress bindAddress
protected int backlog
protected int port
protected java.lang.String adGroupAddress
protected int adGroupPort
protected java.net.InetAddress discoveryBindAddress
protected org.jboss.ha.jndi.DetachedHANamingService.AutomaticDiscovery autoDiscovery
protected boolean discoveryDisabled
protected int autoDiscoveryTTL
protected javax.net.ServerSocketFactory jnpServerSocketFactory
protected java.lang.String jnpServerSocketFactoryName
protected ThreadPool (src) lookupPool
| Constructor Detail |
public DetachedHANamingService()
| Method Detail |
public java.util.Map getMethodMap()
getMethodMap in interface DetachedHANamingServiceMBean (src) public java.lang.String getPartitionName()
DetachedHANamingServiceMBean (src)
getPartitionName in interface DetachedHANamingServiceMBean (src) public void setPartitionName(java.lang.String partitionName)
DetachedHANamingServiceMBean (src)
setPartitionName in interface DetachedHANamingServiceMBean (src) public ObjectName (src) getProxyFactoryObjectName()
DetachedHANamingServiceMBean (src)
getProxyFactoryObjectName in interface DetachedHANamingServiceMBean (src) public void setProxyFactoryObjectName(ObjectName (src) proxyFactory)
DetachedHANamingServiceMBean (src)
setProxyFactoryObjectName in interface DetachedHANamingServiceMBean (src) public void setPort(int p)
DetachedHANamingServiceMBean (src)
setPort in interface DetachedHANamingServiceMBean (src) public int getPort()
DetachedHANamingServiceMBean (src)
getPort in interface DetachedHANamingServiceMBean (src) public java.lang.String getBindAddress()
DetachedHANamingServiceMBean (src)
getBindAddress in interface DetachedHANamingServiceMBean (src)
public void setBindAddress(java.lang.String host)
throws java.net.UnknownHostException
DetachedHANamingServiceMBean (src)
setBindAddress in interface DetachedHANamingServiceMBean (src) java.net.UnknownHostExceptionpublic int getBacklog()
DetachedHANamingServiceMBean (src)
getBacklog in interface DetachedHANamingServiceMBean (src) public void setBacklog(int backlog)
DetachedHANamingServiceMBean (src)
setBacklog in interface DetachedHANamingServiceMBean (src) public void setDiscoveryDisabled(boolean disable)
DetachedHANamingServiceMBean (src)
setDiscoveryDisabled in interface DetachedHANamingServiceMBean (src) public boolean getDiscoveryDisabled()
DetachedHANamingServiceMBean (src)
getDiscoveryDisabled in interface DetachedHANamingServiceMBean (src) public java.lang.String getAutoDiscoveryAddress()
DetachedHANamingServiceMBean (src)
getAutoDiscoveryAddress in interface DetachedHANamingServiceMBean (src) public void setAutoDiscoveryAddress(java.lang.String adAddress)
DetachedHANamingServiceMBean (src)
setAutoDiscoveryAddress in interface DetachedHANamingServiceMBean (src) public int getAutoDiscoveryGroup()
DetachedHANamingServiceMBean (src)
getAutoDiscoveryGroup in interface DetachedHANamingServiceMBean (src) public void setAutoDiscoveryGroup(int adGroup)
DetachedHANamingServiceMBean (src)
setAutoDiscoveryGroup in interface DetachedHANamingServiceMBean (src) public java.lang.String getAutoDiscoveryBindAddress()
DetachedHANamingServiceMBean (src)
getAutoDiscoveryBindAddress in interface DetachedHANamingServiceMBean (src)
public void setAutoDiscoveryBindAddress(java.lang.String address)
throws java.net.UnknownHostException
DetachedHANamingServiceMBean (src)
setAutoDiscoveryBindAddress in interface DetachedHANamingServiceMBean (src) java.net.UnknownHostExceptionpublic int getAutoDiscoveryTTL()
DetachedHANamingServiceMBean (src)
getAutoDiscoveryTTL in interface DetachedHANamingServiceMBean (src) public void setAutoDiscoveryTTL(int ttl)
DetachedHANamingServiceMBean (src)
setAutoDiscoveryTTL in interface DetachedHANamingServiceMBean (src)
public void setJNPServerSocketFactory(java.lang.String factoryClassName)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic void setLookupPool(BasicThreadPoolMBean (src) poolMBean)
DetachedHANamingServiceMBean (src)
setLookupPool in interface DetachedHANamingServiceMBean (src) poolMBean -
public void startService(HAPartition (src) haPartition)
throws java.lang.Exception
java.lang.Exception
protected void createService()
throws java.lang.Exception
ServiceMBeanSupport (src) This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
createService in class ServiceMBeanSupport (src) java.lang.Exception
protected void startService()
throws java.lang.Exception
ServiceMBeanSupport (src) This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService in class ServiceMBeanSupport (src) java.lang.Exception
protected void stopService()
throws java.lang.Exception
ServiceMBeanSupport (src) This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService in class ServiceMBeanSupport (src) java.lang.Exception
public java.lang.Object invoke(Invocation (src) invocation)
throws java.lang.Exception
invoke in interface DetachedHANamingServiceMBean (src) invocation - A pointer to the invocation object
java.lang.Exception - Failed to invoke method.protected void initBootstrapListener()
protected HAPartition (src) findHAPartitionWithName(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
protected Naming (src) getNamingProxy()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||