SOLR-4198: OverseerCollectionProcessor should implement ClosableThread.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1422371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-12-15 21:59:10 +00:00
parent a9e41d20a3
commit 181cad843a
2 changed files with 10 additions and 1 deletions

View File

@ -359,6 +359,9 @@ Bug Fixes
container includes the correct slf4j api and impl jars.
(Shawn Heisey, hossman)
* SOLR-4198: OverseerCollectionProcessor should implement ClosableThread.
(Mark Miller)
Other Changes
----------------------

View File

@ -25,6 +25,7 @@ import java.util.Set;
import org.apache.solr.common.SolrException;
import org.apache.solr.common.SolrException.ErrorCode;
import org.apache.solr.common.cloud.ClosableThread;
import org.apache.solr.common.cloud.ClusterState;
import org.apache.solr.common.cloud.DocCollection;
import org.apache.solr.common.cloud.Replica;
@ -43,7 +44,7 @@ import org.apache.zookeeper.KeeperException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class OverseerCollectionProcessor implements Runnable {
public class OverseerCollectionProcessor implements Runnable, ClosableThread {
public static final String NUM_SLICES = "numShards";
@ -383,4 +384,9 @@ public class OverseerCollectionProcessor implements Runnable {
throw ex;
}
}
@Override
public boolean isClosed() {
return isClosed;
}
}