tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1044175 - in /tomcat/trunk/java/org/apache/catalina/ha/backend: CollectedInfo.java HeartbeatListener.java MultiCastSender.java Proxy.java TcpSender.java
Date Thu, 09 Dec 2010 23:54:23 GMT
Author: markt
Date: Thu Dec  9 23:54:21 2010
New Revision: 1044175

URL: http://svn.apache.org/viewvc?rev=1044175&view=rev
Log:
Fix Eclipse warnings in package

Modified:
    tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java
    tomcat/trunk/java/org/apache/catalina/ha/backend/HeartbeatListener.java
    tomcat/trunk/java/org/apache/catalina/ha/backend/MultiCastSender.java
    tomcat/trunk/java/org/apache/catalina/ha/backend/Proxy.java
    tomcat/trunk/java/org/apache/catalina/ha/backend/TcpSender.java

Modified: tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java?rev=1044175&r1=1044174&r2=1044175&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java Thu Dec  9 23:54:21
2010
@@ -101,6 +101,6 @@ public class CollectedInfo {
         Integer ibusy  = (Integer) mBeanServer.getAttribute(objName, "currentThreadsBusy");
 
         busy = ibusy.intValue();
-        ready = imax.intValue() - ibusy;
+        ready = imax.intValue() - ibusy.intValue();
     }
 }

Modified: tomcat/trunk/java/org/apache/catalina/ha/backend/HeartbeatListener.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/backend/HeartbeatListener.java?rev=1044175&r1=1044174&r2=1044175&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/backend/HeartbeatListener.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/backend/HeartbeatListener.java Thu Dec  9 23:54:21
2010
@@ -74,9 +74,11 @@ public class HeartbeatListener
 
     private Sender sender = null;
 
+    @Override
     public void containerEvent(ContainerEvent event) {
     }
 
+    @Override
     public void lifecycleEvent(LifecycleEvent event) {
 
         if (Lifecycle.PERIODIC_EVENT.equals(event.getType())) {

Modified: tomcat/trunk/java/org/apache/catalina/ha/backend/MultiCastSender.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/backend/MultiCastSender.java?rev=1044175&r1=1044174&r2=1044175&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/backend/MultiCastSender.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/backend/MultiCastSender.java Thu Dec  9 23:54:21
2010
@@ -41,10 +41,12 @@ public class MultiCastSender
     MulticastSocket s = null;
     InetAddress group = null;
 
+    @Override
     public void init(HeartbeatListener config) throws Exception {
         this.config = config;
     }
 
+    @Override
     public int send(String mess) throws Exception {
         if (s == null) {
             try {

Modified: tomcat/trunk/java/org/apache/catalina/ha/backend/Proxy.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/backend/Proxy.java?rev=1044175&r1=1044174&r2=1044175&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/backend/Proxy.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/backend/Proxy.java Thu Dec  9 23:54:21 2010
@@ -26,7 +26,7 @@ import java.net.InetAddress;
  */
 public class Proxy {
 
-  protected enum State { OK, ERROR, DOWN };
+  protected enum State { OK, ERROR, DOWN }
 
   public InetAddress address = null;
   public int port = 80;

Modified: tomcat/trunk/java/org/apache/catalina/ha/backend/TcpSender.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/backend/TcpSender.java?rev=1044175&r1=1044174&r2=1044175&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/backend/TcpSender.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/backend/TcpSender.java Thu Dec  9 23:54:21 2010
@@ -56,6 +56,7 @@ public class TcpSender
     protected BufferedWriter[] connectionWriters = null;
 
 
+    @Override
     public void init(HeartbeatListener config) throws Exception {
         this.config = config;
         StringTokenizer tok = new StringTokenizer(config.getProxyList(), ",");
@@ -81,6 +82,7 @@ public class TcpSender
 
     }
 
+    @Override
     public int send(String mess) throws Exception {
         if (connections == null) {
             log.error("Not initialized");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message