incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [7/7] git commit: Adding license and actual closing code.
Date Thu, 16 May 2013 20:45:24 GMT
Adding license and actual closing code.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/66c804e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/66c804e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/66c804e8

Branch: refs/heads/0.1.5
Commit: 66c804e88be205b07079972526c855cf26338ff1
Parents: 3169628
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Thu May 16 16:14:47 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Thu May 16 16:14:47 2013 -0400

----------------------------------------------------------------------
 .../indexserver/CloseableExecutorService.java      |   18 ++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/66c804e8/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/CloseableExecutorService.java
----------------------------------------------------------------------
diff --git a/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/CloseableExecutorService.java
b/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/CloseableExecutorService.java
index e5d3647..f5900db 100644
--- a/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/CloseableExecutorService.java
+++ b/src/blur-core/src/main/java/org/apache/blur/manager/indexserver/CloseableExecutorService.java
@@ -1,5 +1,21 @@
 package org.apache.blur.manager.indexserver;
 
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
 import java.io.Closeable;
 import java.io.IOException;
 import java.util.concurrent.ExecutorService;
@@ -14,7 +30,7 @@ public class CloseableExecutorService implements Closeable {
 
   @Override
   public void close() throws IOException {
-
+    executor.shutdownNow();
   }
 
 }


Mime
View raw message