User: slaboure
Date: 01/11/26 08:54:51
Modified: src/main/org/jboss/ha/jndi HANamingServiceMBean.java
Log:
Added javadoc comments.
Reorganized code to JBoss coding conventions.
Cleaned import statements
Revision Changes Path
1.5 +45 -4 jbossmx/src/main/org/jboss/ha/jndi/HANamingServiceMBean.java
Index: HANamingServiceMBean.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/jndi/HANamingServiceMBean.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- HANamingServiceMBean.java 2001/11/19 23:16:57 1.4
+++ HANamingServiceMBean.java 2001/11/26 16:54:51 1.5
@@ -1,15 +1,35 @@
+/*
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ *
+ * Copyright 1999 by dreamBean Software,
+ * All rights reserved.
+ */
+
package org.jboss.ha.jndi;
import java.net.UnknownHostException;
import org.jboss.ha.framework.server.PartitionServiceMBean;
-/**
+
+/**
+ * HA-JNDI service that provides JNDI services in a clustered way.
+ * Bindings are replicated cluster-wide.
+ * Lookups are:
+ * - first resolved locally in the cluster-wide tree
+ * - if not available, resolved in the local underlying JNDI tree
+ * - if not available, the query is broadcast on the cluster and each node
determines
+ * if it has one in its local JNDI tree
+ *
+ * The HA-JNDI service also provides an automatic-discovery feature that allow
clients
+ * to resolve the service through multicast.
*
- * @author [EMAIL PROTECTED]
- * @author [EMAIL PROTECTED]
- * @version $Revision: 1.4 $
+ * @author <a href="mailto:[EMAIL PROTECTED]">Bill Burke</a>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Sacha Labourey</a>
+ * @version $Revision: 1.5 $
*
* <p><b>Revisions:</b><br>
*/
+
public interface HANamingServiceMBean
extends PartitionServiceMBean
{
@@ -17,24 +37,45 @@
public static final String OBJECT_NAME = ":service=HANaming";
// Public --------------------------------------------------------
+ /**
+ * Name of the underlying partition that determine the cluster to use.
+ */
public String getPartitionName();
public void setPartitionName(String partitionName);
+ /**
+ * RmiPort to be used by the HA-JNDI service once bound. 0 => auto.
+ */
public void setRmiPort(int p);
public int getRmiPort();
public void setPort(int p);
+ /**
+ * Port on which the HA-JNDI stub is made available
+ */
public int getPort();
+ /**
+ * IP address on which the HA-JNDI stub is made available
+ */
public String getBindAddress();
public void setBindAddress(String host) throws UnknownHostException;
+ /**
+ * Backlog to be used for client-server RMI invocations during JNDI queries
+ */
public int getBacklog();
public void setBacklog(int backlog);
+ /**
+ * Client socket factory to be used for client-server RMI invocations during
JNDI queries
+ */
public String getClientSocketFactory();
public void setClientSocketFactory(String factoryClassName)
throws ClassNotFoundException, InstantiationException,
IllegalAccessException;
+ /**
+ * Server socket factory to be used for client-server RMI invocations during
JNDI queries
+ */
public String getServerSocketFactory();
public void setServerSocketFactory(String factoryClassName)
throws ClassNotFoundException, InstantiationException,
IllegalAccessException;
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development