CronDeploymentScheduler
@Component public class CronDeploymentScheduler
源码Source
io/agentscope/builder/web/managed/CronDeploymentScheduler.java:43–140Cron 部署调度器,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed 包。核心成员包括 start、stop、CronDeploymentScheduler。
Scheduler-plane cron loop: every minute, finds due cron deployments, acquires a shared fire lease, and asks the control plane to fire (create session + kick data-plane turn).
构造器摘要Constructor Summary
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void start() | 执行启动相关操作。 Returns the start. |
public void stop() | 执行停止相关操作。 Returns the stop. |
构造器详情Constructor Detail
CronDeploymentScheduler
public CronDeploymentScheduler(DeploymentEntityRepository repository, CoordinationStore coordinationStore, BuilderInstanceId instanceId, WebClient controlPlane)
初始化 CronDeploymentScheduler 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
repository | DeploymentEntityRepository | 仓库(类型 `DeploymentEntityRepository`)。The repository. |
coordinationStore | CoordinationStore | coordination 存储(类型 `CoordinationStore`)。The coordination store. |
instanceId | BuilderInstanceId | 实例标识(类型 `BuilderInstanceId`)。The instance id. |
controlPlane | WebClient | 控制面(类型 `WebClient`)。The control plane. |
源码Source
io/agentscope/builder/web/managed/CronDeploymentScheduler.java:55–71方法详情Method Detail
start
public void start()
执行启动相关操作。
Returns the start.
源码Source
io/agentscope/builder/web/managed/CronDeploymentScheduler.java:73–76stop
public void stop()
执行停止相关操作。
Returns the stop.
源码Source
io/agentscope/builder/web/managed/CronDeploymentScheduler.java:78–81