org.jboss.ha.jndi
Interface DetachedHANamingServiceMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Subinterfaces:
HANamingServiceMBean
All Known Implementing Classes:
DetachedHANamingService, HANamingService

public interface DetachedHANamingServiceMBean
extends org.jboss.system.ServiceMBean

The standard mbean management interface for the DetachedHANamingService

Version:
$Revision: 1.2.4.5 $

Revisions:

Author:
Scott.Stark@jboss.org

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 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
 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.
 Object invoke(org.jboss.invocation.Invocation invocation)
          Expose the Naming service via JMX for detached invokers.
 void setAutoDiscoveryAddress(String adAddress)
          Set the auto-discovery bootstrap multicast address.
 void setAutoDiscoveryBindAddress(String adAddress)
          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 disabled)
          prevent autodiscovery service from starting
 void setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
          Set the thread pool used for the bootstrap and autodiscovery lookups
 void setPartitionName(String name)
          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.
 
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

getPartitionName

String getPartitionName()
Gets the name of the HAPartition used by this service.

Returns:
the name of the partition

setPartitionName

void setPartitionName(String name)
Sets the name of the HAPartition used by this service.

Parameters:
name - the name of the partition

getClusterPartition

ClusterPartitionMBean getClusterPartition()
Get the underlying partition used by this service.

Returns:
the partition

setClusterPartition

void setClusterPartition(ClusterPartitionMBean clusterPartition)
Sets the underlying partition used by this service.

Parameters:
clusterPartition - the partition

getProxyFactoryObjectName

javax.management.ObjectName getProxyFactoryObjectName()
Get the proxy factory service name used to create the Naming transport proxy.


setProxyFactoryObjectName

void setProxyFactoryObjectName(javax.management.ObjectName proxyFactory)
Set the proxy factory service name used to create the Naming transport proxy.


getPort

int getPort()
Get the bootstrap port on which the HA-JNDI stub is made available


setPort

void setPort(int p)
Set the bootstrap port on which the HA-JNDI stub is made available


getBindAddress

String getBindAddress()
Get the bootstrap IP address on which the HA-JNDI stub is made available


setBindAddress

void setBindAddress(String host)
                    throws UnknownHostException
Set the bootstrap IP address on which the HA-JNDI stub is made available

Throws:
UnknownHostException

getBacklog

int getBacklog()
Get the accept backlog for the bootstrap server socket


setBacklog

void setBacklog(int backlog)
Set the accept backlog for the bootstrap server socket


setDiscoveryDisabled

void setDiscoveryDisabled(boolean disabled)
prevent autodiscovery service from starting


getDiscoveryDisabled

boolean getDiscoveryDisabled()
prevent autodiscovery service from starting


getAutoDiscoveryGroup

int getAutoDiscoveryGroup()
Get the Auto-discovery multicast port


setAutoDiscoveryGroup

void setAutoDiscoveryGroup(int adGroup)
Set the Auto-discovery multicast port.


getAutoDiscoveryAddress

String getAutoDiscoveryAddress()
Get the auto-discovery bootstrap multicast address.


setAutoDiscoveryAddress

void setAutoDiscoveryAddress(String adAddress)
Set the auto-discovery bootstrap multicast address. If null or empty, no auto-discovery bootstrap socket will be created.


getAutoDiscoveryBindAddress

String getAutoDiscoveryBindAddress()
Get the auto-discovery bootstrap multicast bind address.


setAutoDiscoveryBindAddress

void setAutoDiscoveryBindAddress(String adAddress)
                                 throws UnknownHostException
Set the auto-discovery bootstrap multicast bind address. If not specified and a BindAddress is specified, the BindAddress will be used.

Throws:
UnknownHostException

getAutoDiscoveryTTL

int getAutoDiscoveryTTL()
Get the TTL (time-to-live) for autodiscovery IP multicast packets


setAutoDiscoveryTTL

void setAutoDiscoveryTTL(int ttl)
Set the TTL (time-to-live) for autodiscovery IP multicast packets


setLookupPool

void setLookupPool(org.jboss.util.threadpool.BasicThreadPoolMBean poolMBean)
Set the thread pool used for the bootstrap and autodiscovery lookups

Parameters:
poolMBean -

getMethodMap

Map getMethodMap()
Expose the Naming service interface mapping as a read-only attribute

Returns:
A Map of the Naming interface

invoke

Object invoke(org.jboss.invocation.Invocation invocation)
              throws Exception
Expose the Naming service via JMX for detached invokers.

Parameters:
invocation - A pointer to the invocation object
Returns:
Return value of method invocation.
Throws:
Exception - Failed to invoke method.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.