use of com.alibaba.jstorm.schedule.default_assign.DefaultTopologyScheduler in project jstorm by alibaba.
the class TopologyAssign method init.
public void init(NimbusData nimbusData) {
this.nimbusData = nimbusData;
// this.cleanupTimeoutSec = 60;
this.schedulers = new HashMap<String, IToplogyScheduler>();
IToplogyScheduler defaultScheduler = new DefaultTopologyScheduler();
defaultScheduler.prepare(nimbusData.getConf());
schedulers.put(DEFAULT_SCHEDULER_NAME, defaultScheduler);
thread = new Thread(this);
thread.setName("TopologyAssign");
thread.setDaemon(true);
thread.start();
}
Aggregations