@EnableConfigurationProperties(value=SupervisorProperties.class) @ComponentScan(basePackageClasses=SupervisorStartup.class) public static class EnableSupervisor.EnableSupervisorConfiguration extends Object
| 构造器和说明 |
|---|
EnableSupervisorConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.ponfee.disjob.core.base.Supervisor.Current |
currentSupervisor(org.springframework.boot.web.context.WebServerApplicationContext webServerApplicationContext) |
DestinationServerRestProxy.DestinationServerInvoker<cn.ponfee.disjob.core.base.WorkerRpcService,cn.ponfee.disjob.core.base.Worker> |
destinationWorkerRpcClient(org.springframework.web.client.RestTemplate restTemplate,
cn.ponfee.disjob.core.base.WorkerRpcService workerRpcProvider) |
DiscoveryServerRestProxy.GroupedServerInvoker<cn.ponfee.disjob.core.base.WorkerRpcService> |
groupedWorkerRpcClient(cn.ponfee.disjob.core.base.RetryProperties retry,
SupervisorRegistry discoveryWorker,
org.springframework.web.client.RestTemplate restTemplate,
cn.ponfee.disjob.core.base.WorkerRpcService workerRpcProvider,
cn.ponfee.disjob.core.base.Worker.Current currentWorker) |
@Bean(value="disjob.bean.current-supervisor") public cn.ponfee.disjob.core.base.Supervisor.Current currentSupervisor(org.springframework.boot.web.context.WebServerApplicationContext webServerApplicationContext)
@DependsOn(value="disjob.bean.current-supervisor") @Bean public DiscoveryServerRestProxy.GroupedServerInvoker<cn.ponfee.disjob.core.base.WorkerRpcService> groupedWorkerRpcClient(cn.ponfee.disjob.core.base.RetryProperties retry, SupervisorRegistry discoveryWorker, @Qualifier(value="disjob.bean.rest-template") org.springframework.web.client.RestTemplate restTemplate, @Nullable cn.ponfee.disjob.core.base.WorkerRpcService workerRpcProvider, @Nullable cn.ponfee.disjob.core.base.Worker.Current currentWorker)
@DependsOn(value="disjob.bean.current-supervisor") @Bean public DestinationServerRestProxy.DestinationServerInvoker<cn.ponfee.disjob.core.base.WorkerRpcService,cn.ponfee.disjob.core.base.Worker> destinationWorkerRpcClient(@Qualifier(value="disjob.bean.rest-template") org.springframework.web.client.RestTemplate restTemplate, @Nullable cn.ponfee.disjob.core.base.WorkerRpcService workerRpcProvider)
Copyright © 2024. All rights reserved.