KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ha > jndi > HANamingServiceMBean


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.jndi;
23
24 /**
25  * HA-JNDI service that provides JNDI services in a clustered way.
26  * Bindings are replicated cluster-wide.
27  * Lookups are:
28  * - first resolved locally in the cluster-wide tree
29  * - if not available, resolved in the local underlying JNDI tree
30  * - if not available, the query is broadcast on the cluster and each node determines
31  * if it has one in its local JNDI tree
32  *
33  * The HA-JNDI service also provides an automatic-discovery feature that allow clients
34  * to resolve the service through multicast.
35  *
36  * @author <a HREF="mailto:bill@burkecentral.com">Bill Burke</a>
37  * @author <a HREF="mailto:sacha.labourey@cogito-info.ch">Sacha Labourey</a>
38  * @version $Revision: 38794 $
39  *
40  * <p><b>Revisions:</b><br>
41  */

42 public interface HANamingServiceMBean
43    extends DetachedHANamingServiceMBean
44 {
45    /**
46     * RmiPort to be used by the HA-JNDI service once bound. 0 => auto.
47     */

48    void setRmiPort(int p);
49    int getRmiPort();
50
51    /**
52     * Client socket factory to be used for client-server RMI invocations during JNDI queries
53     */

54    String JavaDoc getClientSocketFactory();
55    void setClientSocketFactory(String JavaDoc factoryClassName)
56            throws ClassNotFoundException JavaDoc, InstantiationException JavaDoc, IllegalAccessException JavaDoc;
57    /**
58     * Server socket factory to be used for client-server RMI invocations during JNDI queries
59     */

60    String JavaDoc getServerSocketFactory();
61    void setServerSocketFactory(String JavaDoc factoryClassName)
62            throws ClassNotFoundException JavaDoc, InstantiationException JavaDoc, IllegalAccessException JavaDoc;
63    
64    /**
65     * LoadBalancePolicy to be used by the HA-JNDI service.
66     */

67    void setLoadBalancePolicy(String JavaDoc policyName);
68    String JavaDoc getLoadBalancePolicy();
69
70 }
71
72
Popular Tags