Diff of /tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java
Parent Directory
| Revision Log
| Patch
--- tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java 2006/02/13 21:36:29 377498
+++ tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java 2006/02/13 21:39:52 377499
@@ -1005,29 +1005,7 @@ public class SimpleTcpCluster implements
clusterLog = null ;
}
- /**
- * send message to all cluster members same cluster domain
- *
- * @see org.apache.catalina.cluster.CatalinaCluster#send(org.apache.catalina.cluster.ClusterMessage)
- */
- public void sendClusterDomain(ClusterMessage msg) {
- long start = 0;
- if (doClusterLog)
- start = System.currentTimeMillis();
- try {
- msg.setAddress(membershipService.getLocalMember());
- clusterSender.sendMessageClusterDomain(msg);
- } catch (Exception x) {
- if (notifyLifecycleListenerOnFailure) {
- // Notify our interested LifecycleListeners
- lifecycle.fireLifecycleEvent(SEND_MESSAGE_FAILURE_EVENT,
- new SendMessageData(msg, null, x));
- }
- log.error("Unable to send message through cluster sender.", x);
- }
- if (doClusterLog)
- logSendMessage(msg, start, null);
- }
+
/**
@@ -1059,6 +1037,31 @@ public class SimpleTcpCluster implements
}
/**
+ * send message to all cluster members same cluster domain
+ *
+ * @see org.apache.catalina.cluster.CatalinaCluster#send(org.apache.catalina.cluster.ClusterMessage)
+ */
+ public void sendClusterDomain(ClusterMessage msg) {
+ long start = 0;
+ if (doClusterLog)
+ start = System.currentTimeMillis();
+ try {
+ msg.setAddress(membershipService.getLocalMember());
+ clusterSender.sendMessageClusterDomain(msg);
+ } catch (Exception x) {
+ if (notifyLifecycleListenerOnFailure) {
+ // Notify our interested LifecycleListeners
+ lifecycle.fireLifecycleEvent(SEND_MESSAGE_FAILURE_EVENT,
+ new SendMessageData(msg, null, x));
+ }
+ log.error("Unable to send message through cluster sender.", x);
+ }
+ if (doClusterLog)
+ logSendMessage(msg, start, null);
+ }
+
+
+ /**
* send a cluster message to one member
*
* @param msg message to transfer