KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ha > framework > server > util > PingJndiMBean


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.ha.framework.server.util;
23
24 import java.util.ArrayList JavaDoc;
25
26 /**
27  * @author Scott.Stark@jboss.org
28  * @version $Revision: 58095 $
29  */

30 public interface PingJndiMBean
31 {
32    /** Get the names of JNDI bindings that should be queried on each host
33     * @return the array of target names to test
34     */

35    public String JavaDoc[] getLookupNames();
36    /** Set the names of JNDI bindings that should be queried on each host
37     * @param names
38     */

39    public void setLookupNames(String JavaDoc[] names);
40
41    /** Get the Context.PROVIDER_URL regular expression.
42     * @return the expression containing the ${host} reference, for example
43     * 'jnp://${host}:1099/'
44     */

45    public String JavaDoc getProviderURLPattern();
46    /** Set the expression containing the hostname/IP ${host} reference of
47     * the JNDI provider. This expression is used to build the JNDI
48     * Context.PROVIDER_URL for each node in the cluster. The expression
49     * should contain a "(host)" component that will be replaced with the
50     * cluster node hostname.
51     *
52     * @param regex the regular expression containing the host, for example
53     * 'jnp://(host):1099/'
54     */

55    public void setProviderURLPattern(String JavaDoc regex);
56
57
58    /** The TopologyMonitorService trigger callback operation.
59     *
60     * @param deadMembers ArrayList<AddressPort> of nodes that were removed
61     * @param newMembers ArrayList<AddressPort> of nodes that were added
62     * @param allMembers ArrayList<AddressPort> of nodes currently in the cluster
63     * @param logLoggerName the log4j category name used by the
64     * TopologyMonitorService. This is used for logging to integrate with
65     * the TopologyMonitorService output.
66     */

67    public void membershipChanged(ArrayList JavaDoc deadMembers, ArrayList JavaDoc newMembers,
68       ArrayList JavaDoc allMembers, String JavaDoc logLoggerName);
69 }
70
Popular Tags