AS AgentScopeAPI 手册 / API Reference

CronDeploymentScheduler

@Component public class CronDeploymentScheduler
源码Source io/agentscope/builder/web/managed/CronDeploymentScheduler.java:43–140

Cron 部署调度器,承载智能体的部署、调度与服务化运行。位于 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

构造器Constructor说明Description
public CronDeploymentScheduler(DeploymentEntityRepository repository, CoordinationStore coordinationStore, BuilderInstanceId instanceId, WebClient controlPlane)
初始化 `CronDeploymentScheduler` 实例。
Creates a new instance.

方法摘要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
repositoryDeploymentEntityRepository仓库(类型 `DeploymentEntityRepository`)。The repository.
coordinationStoreCoordinationStorecoordination 存储(类型 `CoordinationStore`)。The coordination store.
instanceIdBuilderInstanceId实例标识(类型 `BuilderInstanceId`)。The instance id.
controlPlaneWebClient控制面(类型 `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–76

stop

public void stop()

执行停止相关操作。

Returns the stop.

源码Source io/agentscope/builder/web/managed/CronDeploymentScheduler.java:78–81
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.