flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esam...@apache.org
Subject svn commit: r1158908 - /incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/ChannelDriverThread.java
Date Wed, 17 Aug 2011 20:55:52 GMT
Author: esammer
Date: Wed Aug 17 20:55:51 2011
New Revision: 1158908

URL: http://svn.apache.org/viewvc?rev=1158908&view=rev
Log:
- Added an interrupt() method to channel driver to cancel blocking ops.

Modified:
    incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/ChannelDriverThread.java

Modified: incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/ChannelDriverThread.java
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/ChannelDriverThread.java?rev=1158908&r1=1158907&r2=1158908&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/ChannelDriverThread.java
(original)
+++ incubator/flume/branches/flume-728/flume-ng-core/src/main/java/org/apache/flume/ChannelDriverThread.java
Wed Aug 17 20:55:51 2011
@@ -169,6 +169,10 @@ public class ChannelDriverThread extends
     logger.info("Logical node ended. Event metrics - {}", counterGroup);
   }
 
+  public void interrupt() {
+    Thread.currentThread().interrupt();
+  }
+
   public void fail(Exception lastException, boolean shouldStop) {
     this.lastException = lastException;
     this.shouldStop = shouldStop;



Mime
View raw message