public class SupervisorLifecycle extends Object implements org.springframework.context.SmartLifecycle
https://www.cnblogs.com/deityjian/p/11296846.html
InitializingBean#afterPropertiesSet -> SmartLifecycle#start -> SmartLifecycle#stop -> DisposableBean#destroy
| 构造器和说明 |
|---|
SupervisorLifecycle(cn.ponfee.disjob.core.base.Supervisor.Local localSupervisor,
SupervisorProperties supervisorConf,
SupervisorRegistry supervisorRegistry,
WorkerClient workerClient,
JobManager jobManager,
JobQuerier jobQuerier,
TaskDispatcher taskDispatcher,
cn.ponfee.disjob.common.lock.LockTemplate scanTriggeringJobLocker,
cn.ponfee.disjob.common.lock.LockTemplate scanWaitingInstanceLocker,
cn.ponfee.disjob.common.lock.LockTemplate scanRunningInstanceLocker) |
public SupervisorLifecycle(cn.ponfee.disjob.core.base.Supervisor.Local localSupervisor,
SupervisorProperties supervisorConf,
SupervisorRegistry supervisorRegistry,
WorkerClient workerClient,
JobManager jobManager,
JobQuerier jobQuerier,
TaskDispatcher taskDispatcher,
@Qualifier(value="disjob.bean.scan-triggering-job-locker")
cn.ponfee.disjob.common.lock.LockTemplate scanTriggeringJobLocker,
@Qualifier(value="disjob.bean.scan-waiting-instance-locker")
cn.ponfee.disjob.common.lock.LockTemplate scanWaitingInstanceLocker,
@Qualifier(value="disjob.bean.scan-running-instance-locker")
cn.ponfee.disjob.common.lock.LockTemplate scanRunningInstanceLocker)
public void start()
start 在接口中 org.springframework.context.Lifecyclepublic void stop(Runnable callback)
stop 在接口中 org.springframework.context.SmartLifecyclepublic void stop()
stop 在接口中 org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning 在接口中 org.springframework.context.Lifecyclepublic int getPhase()
getPhase 在接口中 org.springframework.context.PhasedgetPhase 在接口中 org.springframework.context.SmartLifecycleCopyright © 2025. All rights reserved.