remm 2002/12/05 04:22:15
Modified: catalina/src/share/org/apache/catalina Cluster.java
Log:
- Simplify cluster interface.
Revision Changes Path
1.2 +19 -53
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java
Index: Cluster.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Cluster.java 18 Jul 2002 16:47:36 -0000 1.1
+++ Cluster.java 5 Dec 2002 12:22:15 -0000 1.2
@@ -64,11 +64,6 @@
package org.apache.catalina;
-import java.beans.PropertyChangeListener;
-import java.util.Collection;
-import org.apache.catalina.cluster.ClusterMemberInfo;
-import org.apache.catalina.cluster.ClusterReceiver;
-import org.apache.catalina.cluster.ClusterSender;
/**
* A <b>Cluster</b> works as a Cluster client/server for the local host
@@ -80,6 +75,7 @@
* <code>ClusterInfo</code> used for receiving information in the Cluster.
*
* @author Bip Thelin
+ * @author Remy Maucherat
* @version $Revision$, $Date$
*/
@@ -103,21 +99,6 @@
public String getClusterName();
/**
- * Set the time in seconds that the Cluster waits before
- * checking for changes and replicated data.
- *
- * @param checkInterval The time in seconds to sleep
- */
- public void setCheckInterval(int checkInterval);
-
- /**
- * Get the time in seconds that this Cluster sleeps.
- *
- * @return The value in seconds
- */
- public int getCheckInterval();
-
- /**
* Set the name of the cluster to join, if no cluster with
* this name is present create one.
*
@@ -153,44 +134,29 @@
*/
public int getDebug();
- // --------------------------------------------------------- Public Methods
-
/**
- * Returns a collection containing <code>ClusterMemberInfo</code>
- * on the remote members of this Cluster. This method does
- * not include the local host, to retrieve
- * <code>ClusterMemberInfo</code> on the local host
- * use <code>getLocalClusterInfo()</code> instead.
+ * Set the protocol parameters.
*
- * @return Collection with all members in the Cluster
+ * @param protocol The protocol used by the cluster
*/
- public ClusterMemberInfo[] getRemoteClusterMembers();
+ public void setProtocol(String protocol);
/**
- * Returns a <code>ClusterSender</code> which is the interface
- * to use when sending information in the Cluster. senderId is
- * used as a identifier so that information sent through this
- * instance can only be used with the respectice
- * <code>ClusterReceiver</code>
+ * Get the protocol used by the cluster.
*
- * @return The ClusterSender
+ * @return The protocol
*/
- public ClusterSender getClusterSender(String senderId);
+ public String getProtocol();
- /**
- * Returns a <code>ClusterReceiver</code> which is the interface
- * to use when receiving information in the Cluster. senderId is
- * used as a indentifier, only information send through the
- * <code>ClusterSender</code> with the same senderId can be received.
- *
- * @return The ClusterReceiver
- */
- public ClusterReceiver getClusterReceiver(String senderId);
+ // --------------------------------------------------------- Public Methods
/**
- * Return cluster information about the local host
- *
- * @return Cluster information
+ * Create a new manager which will use this cluster to replicate its
+ * sessions.
+ *
+ * @param name Name (key) of the application with which the manager is
+ * associated
*/
- public ClusterMemberInfo getLocalClusterMember();
+ public Manager createManager(String name);
+
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>