directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 43404 - in incubator/directory/seda/trunk: api/src/java/org/apache/seda/buffer api/src/java/org/apache/seda/decoder api/src/java/org/apache/seda/encoder api/src/java/org/apache/seda/input api/src/java/org/apache/seda/listener api/src/java/org/apache/seda/output api/src/java/org/apache/seda/protocol impl/src/java/org/apache/seda/buffer impl/src/java/org/apache/seda/decoder impl/src/java/org/apache/seda/encoder impl/src/java/org/apache/seda/input impl/src/java/org/apache/seda/listener impl/src/java/org/apache/seda/output impl/src/java/org/apache/seda/processor impl/src/java/org/apache/seda/protocol impl/src/java/org/apache/seda/stage
Date Mon, 06 Sep 2004 04:49:46 GMT
Author: akarasulu
Date: Sun Sep  5 21:49:45 2004
New Revision: 43404

Added:
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/buffer/BufferPoolMonitorAdapter.java
      - copied unchanged from rev 43402, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/buffer/BufferPoolMonitorAdapter.java
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/decoder/DecoderManagerMonitorAdapter.java
      - copied unchanged from rev 43402, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/decoder/DecoderManagerMonitorAdapter.java
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/encoder/EncoderManagerMonitorAdapter.java
      - copied unchanged from rev 43402, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/encoder/EncoderManagerMonitorAdapter.java
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/input/InputManagerMonitorAdapter.java
      - copied unchanged from rev 43402, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/input/InputManagerMonitorAdapter.java
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/listener/ListenerManagerMonitorAdapter.java
  (contents, props changed)
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/output/OutputMonitorAdapter.java
      - copied unchanged from rev 43402, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/output/OutputMonitorAdapter.java
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/RequestProcessorMonitorAdapter.java
      - copied, changed from rev 43402, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/processor/RequestProcessorMonitorAdapter.java
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/protocol/
      - copied from rev 43402, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/processor/
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/protocol/DefaultRequestProcessor.java
      - copied unchanged from rev 43403, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/processor/DefaultRequestProcessor.java
Removed:
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/buffer/BufferPoolMonitorAdapter.java
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/decoder/DecoderManagerMonitorAdapter.java
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/encoder/EncoderManagerMonitorAdapter.java
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/input/InputManagerMonitorAdapter.java
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/listener/ListenerManagerMonitorAdapter.java
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/output/OutputMonitorAdapter.java
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/processor/
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/protocol/RequestHandler.java
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/protocol/RequestProcessorMonitorAdapter.java
Modified:
   incubator/directory/seda/trunk/impl/src/java/org/apache/seda/stage/StageMonitorAdapter.java
Log:
removing unnecessary use of exeception trace captures

Added: incubator/directory/seda/trunk/api/src/java/org/apache/seda/listener/ListenerManagerMonitorAdapter.java
==============================================================================
--- (empty file)
+++ incubator/directory/seda/trunk/api/src/java/org/apache/seda/listener/ListenerManagerMonitorAdapter.java
Sun Sep  5 21:49:45 2004
@@ -0,0 +1,102 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.seda.listener;
+
+import java.nio.channels.SelectionKey;
+import java.nio.channels.Selector;
+import java.io.IOException;
+
+/**
+ * Document me.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class ListenerManagerMonitorAdapter implements ListenerManagerMonitor
+{
+    public void started()
+    {
+    }
+
+    public void stopped()
+    {
+    }
+
+    public void bindOccured( ListenerConfig a_listenerConfig )
+    {
+    }
+
+    public void unbindOccured( ListenerConfig a_listenerConfig )
+    {
+    }
+
+    public void acceptOccured( SelectionKey a_key )
+    {
+    }
+
+    public void selectOccured( Selector a_selector )
+    {
+    }
+
+    public void selectTimedOut( Selector a_selector )
+    {
+    }
+
+    public void failedToBind( ListenerConfig a_listenerConfig, IOException a_failure )
+    {
+        if ( a_failure != null )
+        {
+            a_failure.printStackTrace();
+        }
+    }
+
+    public void failedToUnbind( ListenerConfig a_listenerConfig, IOException a_failure )
+    {
+        if ( a_failure != null )
+        {
+            a_failure.printStackTrace();
+        }
+    }
+
+    public void failedToExpire( ClientKey a_key, IOException a_failure )
+    {
+        if ( a_failure != null )
+        {
+            a_failure.printStackTrace();
+        }
+    }
+
+    public void failedToAccept( SelectionKey a_key, IOException a_failure )
+    {
+        if ( a_failure != null )
+        {
+            a_failure.printStackTrace();
+        }
+    }
+
+    public void failedToSelect( Selector a_selector, IOException a_failure )
+    {
+        if ( a_failure != null )
+        {
+            a_failure.printStackTrace();
+        }
+    }
+
+    public void enteringSelect( Selector a_selector )
+    {
+    }
+}

Copied: incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/RequestProcessorMonitorAdapter.java
(from rev 43402, incubator/directory/seda/trunk/impl/src/java/org/apache/seda/processor/RequestProcessorMonitorAdapter.java)
==============================================================================
--- incubator/directory/seda/trunk/impl/src/java/org/apache/seda/processor/RequestProcessorMonitorAdapter.java
(original)
+++ incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/RequestProcessorMonitorAdapter.java
Sun Sep  5 21:49:45 2004
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.seda.processor ;
+package org.apache.seda.protocol ;
 
 
 import java.util.EventObject ;
@@ -23,7 +23,6 @@
 
 import org.apache.seda.event.Subscriber ;
 import org.apache.seda.listener.ClientKey ;
-import org.apache.seda.protocol.RequestProcessorMonitor;
 
 
 /**

Modified: incubator/directory/seda/trunk/impl/src/java/org/apache/seda/stage/StageMonitorAdapter.java
==============================================================================
--- incubator/directory/seda/trunk/impl/src/java/org/apache/seda/stage/StageMonitorAdapter.java
(original)
+++ incubator/directory/seda/trunk/impl/src/java/org/apache/seda/stage/StageMonitorAdapter.java
Sun Sep  5 21:49:45 2004
@@ -19,8 +19,6 @@
 
 import java.util.EventObject ;
 
-import org.apache.commons.lang.exception.ExceptionUtils ;
-
 
 /**
  * A do nothing adapter for a stage.  For safty's sake this adapter reports 
@@ -160,7 +158,10 @@
      */
     public void driverFailed( Stage stage, InterruptedException fault )
     {
-        System.err.println( ExceptionUtils.getFullStackTrace( fault ) ) ;
+        if ( fault != null )
+        {
+            fault.printStackTrace();
+        }
     }
 
     
@@ -170,7 +171,10 @@
      */
     public void handlerFailed( Stage stage, EventObject event, Throwable fault )
     {
-        System.err.println( ExceptionUtils.getFullStackTrace( fault ) ) ;
+        if ( fault != null )
+        {
+            fault.printStackTrace();
+        }
     }
 
 

Mime
View raw message