com.xxl.job.admin.core.thread.JobRegistryMonitorHelper Java Examples

The following examples show how to use com.xxl.job.admin.core.thread.JobRegistryMonitorHelper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XxlJobDynamicScheduler.java    From open-capacity-platform with Apache License 2.0 6 votes vote down vote up
@PostConstruct
public void init() throws Exception {
    // admin registry monitor run
    // 启动自动注册线程, 获取类型为自动注册的执行器信息,完成机器的自动注册与发现
    JobRegistryMonitorHelper.getInstance().start();

    // admin monitor run
    // 启动失败日志监控线程
    JobFailMonitorHelper.getInstance().start();

    // admin-server(spring-mvc)
    NetComServerFactory.putService(AdminBiz.class, XxlJobDynamicScheduler.adminBiz);
    NetComServerFactory.setAccessToken(accessToken);

    // init i18n
    initI18n();

    // valid
    Assert.notNull(scheduler, "quartz scheduler is null");
    logger.info(">>>>>>>>> init xxl-job admin success.");
}
 
Example #2
Source File: XxlJobDynamicScheduler.java    From microservices-platform with Apache License 2.0 6 votes vote down vote up
public void start() throws Exception {
    // valid
    Assert.notNull(scheduler, "quartz scheduler is null");

    // init i18n
    initI18n();

    // admin registry monitor run
    JobRegistryMonitorHelper.getInstance().start();

    // admin monitor run
    JobFailMonitorHelper.getInstance().start();

    // admin-server
    initRpcProvider();

    logger.info(">>>>>>>>> init xxl-job admin success.");
}
 
Example #3
Source File: XxlJobDynamicScheduler.java    From zuihou-admin-boot with Apache License 2.0 6 votes vote down vote up
public void start() throws Exception {
    // valid
    Assert.notNull(scheduler, "quartz scheduler is null");

    // init i18n
    initI18n();

    // admin registry monitor run
    JobRegistryMonitorHelper.getInstance().start();

    // admin monitor run
    JobFailMonitorHelper.getInstance().start();

    // admin-server
    initRpcProvider();

    logger.info(">>>>>>>>> init xxl-job admin success.");
}
 
Example #4
Source File: XxlJobDynamicScheduler.java    From zuihou-admin-cloud with Apache License 2.0 6 votes vote down vote up
public void start() throws Exception {
    // valid
    Assert.notNull(scheduler, "quartz scheduler is null");

    // init i18n
    initI18n();

    // admin registry monitor run
    JobRegistryMonitorHelper.getInstance().start();

    // admin monitor run
    JobFailMonitorHelper.getInstance().start();

    // admin-server
    initRpcProvider();

    logger.info(">>>>>>>>> init xxl-job admin success.");
}
 
Example #5
Source File: XxlJobDynamicScheduler.java    From open-capacity-platform with Apache License 2.0 5 votes vote down vote up
@PreDestroy
public void destroy(){
    // admin registry stop
    JobRegistryMonitorHelper.getInstance().toStop();

    // admin monitor stop
    JobFailMonitorHelper.getInstance().toStop();
}
 
Example #6
Source File: XxlJobDynamicScheduler.java    From microservices-platform with Apache License 2.0 5 votes vote down vote up
public void destroy() throws Exception {
    // admin trigger pool stop
    JobTriggerPoolHelper.toStop();

    // admin registry stop
    JobRegistryMonitorHelper.getInstance().toStop();

    // admin monitor stop
    JobFailMonitorHelper.getInstance().toStop();

    // admin-server
    stopRpcProvider();
}
 
Example #7
Source File: XxlJobDynamicScheduler.java    From zuihou-admin-boot with Apache License 2.0 5 votes vote down vote up
public void destroy() throws Exception {
    // admin trigger pool stop
    JobTriggerPoolHelper.toStop();

    // admin registry stop
    JobRegistryMonitorHelper.getInstance().toStop();

    // admin monitor stop
    JobFailMonitorHelper.getInstance().toStop();

    // admin-server
    stopRpcProvider();
}
 
Example #8
Source File: XxlJobDynamicScheduler.java    From zuihou-admin-cloud with Apache License 2.0 5 votes vote down vote up
public void destroy() throws Exception {
    // admin trigger pool stop
    JobTriggerPoolHelper.toStop();

    // admin registry stop
    JobRegistryMonitorHelper.getInstance().toStop();

    // admin monitor stop
    JobFailMonitorHelper.getInstance().toStop();

    // admin-server
    stopRpcProvider();
}