站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 cluster API Documentation 英文版文档

PingJndiMBean (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档


org.jboss.ha.framework.server.util
Interface PingJndiMBean

All Known Implementing Classes:
PingJndi

public interface PingJndiMBean

Version:
$Revision: 1.3 $
Author:
Scott.Stark@jboss.org

Method Summary
 String[] getLookupNames()
          Get the names of JNDI bindings that should be queried on each host
 String getProviderURLPattern()
          Get the Context.PROVIDER_URL regular expression.
 void membershipChanged(ArrayList deadMembers, ArrayList newMembers, ArrayList allMembers, String logCategoryName)
          The TopologyMonitorService trigger callback operation.
 void setLookupNames(String[] names)
          Set the names of JNDI bindings that should be queried on each host
 void setProviderURLPattern(String regex)
          Set the expression containing the hostname/IP ${host} reference of the JNDI provider.
 

Method Detail

getLookupNames

public String[] getLookupNames()
Get the names of JNDI bindings that should be queried on each host

Returns:
the array of target names to test

setLookupNames

public void setLookupNames(String[] names)
Set the names of JNDI bindings that should be queried on each host

Parameters:
names -

getProviderURLPattern

public String getProviderURLPattern()
Get the Context.PROVIDER_URL regular expression.

Returns:
the expression containing the ${host} reference, for example 'jnp://${host}:1099/'

setProviderURLPattern

public void setProviderURLPattern(String regex)
Set the expression containing the hostname/IP ${host} reference of the JNDI provider. This expression is used to build the JNDI Context.PROVIDER_URL for each node in the cluster. The expression should contain a "(host)" component that will be replaced with the cluster node hostname.

Parameters:
regex - the regular expression containing the host, for example 'jnp://(host):1099/'

membershipChanged

public void membershipChanged(ArrayList deadMembers,
                              ArrayList newMembers,
                              ArrayList allMembers,
                              String logCategoryName)
The TopologyMonitorService trigger callback operation.

Parameters:
deadMembers - ArrayList of nodes that were removed
newMembers - ArrayList of nodes that were added
allMembers - ArrayList of nodes currently in the cluster
logCategoryName - the log4j category name used by the TopologyMonitorService. This is used for logging to integrate with the TopologyMonitorService output.


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