@ConditionalOnProperty(value="server.port") public static class EnableSupervisor.EnableSupervisorConfiguration extends Object
| 构造器和说明 |
|---|
EnableSupervisorConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.ponfee.disjob.core.base.Supervisor |
currentSupervisor(int port,
String boundHost) |
cn.ponfee.disjob.common.spring.LocalizedMethodArgumentConfigurer |
localizedMethodArgumentConfigurer() |
cn.ponfee.disjob.common.spring.SpringContextHolder |
springContextHolder() |
WorkerCoreRpcClient |
workerCoreRpcClient(cn.ponfee.disjob.core.base.HttpProperties httpProperties,
cn.ponfee.disjob.core.base.RetryProperties retryProperties,
SupervisorRegistry supervisorRegistry,
cn.ponfee.disjob.core.base.Worker currentWorker,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
@AutoConfigureOrder(value=-2147483648)
@Order(value=-2147483648)
@ConditionalOnMissingBean
@Bean(value="disjob.bean.current-supervisor")
public cn.ponfee.disjob.core.base.Supervisor currentSupervisor(@Value(value="${server.port}")
int port,
@Value(value="${disjob.bound.server.host:}")
String boundHost)
@DependsOn(value="disjob.bean.current-supervisor") @ConditionalOnMissingBean @Bean public WorkerCoreRpcClient workerCoreRpcClient(cn.ponfee.disjob.core.base.HttpProperties httpProperties, cn.ponfee.disjob.core.base.RetryProperties retryProperties, SupervisorRegistry supervisorRegistry, @Nullable cn.ponfee.disjob.core.base.Worker currentWorker, @Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@ConditionalOnMissingBean @Bean public cn.ponfee.disjob.common.spring.LocalizedMethodArgumentConfigurer localizedMethodArgumentConfigurer()
@ConditionalOnMissingBean @Bean public cn.ponfee.disjob.common.spring.SpringContextHolder springContextHolder()
Copyright © 2023. All rights reserved.