| org.jboss.ha.framework.server.util.PingJndi
PingJndi | public class PingJndi extends ServiceMBeanSupport implements PingJndiMBean(Code) | | A utility MBean that can be used as the trigger target of the
TopologyMonitorService to probe the state of JNDI on the cluster nodes.
author: Scott.Stark@jboss.org version: $Revision: 57188 $ |
Method Summary | |
public String[] | getLookupNames() | public String | getProviderURLPattern() Get the Context.PROVIDER_URL regular expression. | public void | membershipChanged(ArrayList removed, ArrayList added, ArrayList members, String logCategoryName) The TopologyMonitorService trigger callback operation.
Parameters: removed - ArrayList of nodes that were removed Parameters: added - ArrayList of nodes that were added Parameters: members - ArrayList of nodes currently in the cluster Parameters: logCategoryName - the log4j category name used by theTopologyMonitorService. | public void | setLookupNames(String[] names) | public void | setProviderURLPattern(String regex) Set the regular expression containing the hostname/IP address of
the JNDI provider. |
getLookupNames | public String[] getLookupNames()(Code) | | Get the names of JNDI bindings that should be queried on each host
the array of target names to test |
getProviderURLPattern | public String getProviderURLPattern()(Code) | | Get the Context.PROVIDER_URL regular expression.
the regular expression containing the host, for example'jnp://(host):1099/' |
membershipChanged | public void membershipChanged(ArrayList removed, ArrayList added, ArrayList members, String logCategoryName)(Code) | | The TopologyMonitorService trigger callback operation.
Parameters: removed - ArrayList of nodes that were removed Parameters: added - ArrayList of nodes that were added Parameters: members - ArrayList of nodes currently in the cluster Parameters: logCategoryName - the log4j category name used by theTopologyMonitorService. This is used for logging to integrate withthe TopologyMonitorService output. |
setLookupNames | public void setLookupNames(String[] names)(Code) | | Set the names of JNDI bindings that should be queried on each host
Parameters: names - |
setProviderURLPattern | public void setProviderURLPattern(String regex)(Code) | | Set the regular expression containing the hostname/IP address 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/' |
|
|