KAFKA-3606: Traverse CLASSPATH during herder start
ewencp Can you take a quick look?
Author: Liquan Pei <liquanpei@gmail.com>
Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>
Closes#1252 from Ishiihara/pre-list-connectors
pull/1252/merge
Liquan Pei9 years agocommitted byEwen Cheslack-Postava
@ -84,6 +84,9 @@ public abstract class AbstractHerder implements Herder, TaskStatus.Listener, Con
@@ -84,6 +84,9 @@ public abstract class AbstractHerder implements Herder, TaskStatus.Listener, Con
@ -101,12 +104,20 @@ public abstract class AbstractHerder implements Herder, TaskStatus.Listener, Con
@@ -101,12 +104,20 @@ public abstract class AbstractHerder implements Herder, TaskStatus.Listener, Con
this.worker.start();
this.statusBackingStore.start();
this.configBackingStore.start();
traverseClassPath();
}
protectedvoidstopServices(){
this.statusBackingStore.stop();
this.configBackingStore.stop();
this.worker.stop();
if(this.classPathTraverser!=null){
try{
this.classPathTraverser.join();
}catch(InterruptedExceptione){
// ignore as it can only happen during shutdown
}
}
}
@Override
@ -248,22 +259,24 @@ public abstract class AbstractHerder implements Herder, TaskStatus.Listener, Con
@@ -248,22 +259,24 @@ public abstract class AbstractHerder implements Herder, TaskStatus.Listener, Con
@ -354,4 +367,14 @@ public abstract class AbstractHerder implements Herder, TaskStatus.Listener, Con
@@ -354,4 +367,14 @@ public abstract class AbstractHerder implements Herder, TaskStatus.Listener, Con