Author: kfujino
Date: Thu Sep 26 08:03:03 2013
New Revision: 1526408
URL: http://svn.apache.org/r1526408
Log:
Add support for notify periodic event of cluster.
Modified:
tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
Modified: tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java?rev=1526408&r1=1526407&r2=1526408&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java Thu Sep
26 08:03:03 2013
@@ -32,6 +32,7 @@ import org.apache.catalina.Container;
import org.apache.catalina.Context;
import org.apache.catalina.Engine;
import org.apache.catalina.Host;
+import org.apache.catalina.Lifecycle;
import org.apache.catalina.LifecycleEvent;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.LifecycleListener;
@@ -506,6 +507,9 @@ public class SimpleTcpCluster extends Li
//send a heartbeat through the channel
if ( isHeartbeatBackgroundEnabled() && channel !=null )
channel.heartbeat();
+
+ // periodic event
+ fireLifecycleEvent(Lifecycle.PERIODIC_EVENT, null);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]