Search in sources :

Example 1 with DefaultUncaughtExceptionHandler

use of com.alibaba.jstorm.utils.DefaultUncaughtExceptionHandler in project jstorm by alibaba.

the class Supervisor method main.

/**
     * start supervisor daemon
     */
public static void main(String[] args) {
    Thread.setDefaultUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
    JStormServerUtils.startTaobaoJvmMonitor();
    Supervisor instance = new Supervisor();
    instance.run();
}
Also used : DefaultUncaughtExceptionHandler(com.alibaba.jstorm.utils.DefaultUncaughtExceptionHandler)

Example 2 with DefaultUncaughtExceptionHandler

use of com.alibaba.jstorm.utils.DefaultUncaughtExceptionHandler in project jstorm by alibaba.

the class NimbusServer method main.

public static void main(String[] args) throws Exception {
    Thread.setDefaultUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
    // read configuration files
    @SuppressWarnings("rawtypes") Map config = Utils.readStormConfig();
    JStormServerUtils.startTaobaoJvmMonitor();
    NimbusServer instance = new NimbusServer();
    INimbus iNimbus = new DefaultInimbus();
    instance.launchServer(config, iNimbus);
}
Also used : DefaultUncaughtExceptionHandler(com.alibaba.jstorm.utils.DefaultUncaughtExceptionHandler) INimbus(backtype.storm.scheduler.INimbus) Map(java.util.Map)

Example 3 with DefaultUncaughtExceptionHandler

use of com.alibaba.jstorm.utils.DefaultUncaughtExceptionHandler in project jstorm by alibaba.

the class Drpc method main.

public static void main(String[] args) throws Exception {
    LOG.info("Begin to start Drpc server");
    Thread.setDefaultUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
    final Drpc service = new Drpc();
    service.init();
}
Also used : DefaultUncaughtExceptionHandler(com.alibaba.jstorm.utils.DefaultUncaughtExceptionHandler)

Aggregations

DefaultUncaughtExceptionHandler (com.alibaba.jstorm.utils.DefaultUncaughtExceptionHandler)3 INimbus (backtype.storm.scheduler.INimbus)1 Map (java.util.Map)1