Search in sources :

Example 1 with DefaultTopologyScheduler

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();
}
Also used : IToplogyScheduler(com.alibaba.jstorm.schedule.IToplogyScheduler) DefaultTopologyScheduler(com.alibaba.jstorm.schedule.default_assign.DefaultTopologyScheduler)

Aggregations

IToplogyScheduler (com.alibaba.jstorm.schedule.IToplogyScheduler)1 DefaultTopologyScheduler (com.alibaba.jstorm.schedule.default_assign.DefaultTopologyScheduler)1