ControlPlaneSandboxExecutionGuard
public final class ControlPlaneSandboxExecutionGuard implements SandboxExecutionGuard
源码Source
io/agentscope/extensions/aistio/store/ControlPlaneSandboxExecutionGuard.java:45–218控制面沙箱执行守卫,承载智能体的部署、调度与服务化运行。位于 io.agentscope.extensions.aistio.store 包,实现 SandboxExecutionGuard。核心成员包括 tryEnter。
Control-plane hosted SandboxExecutionGuard over /api/v1/dp/locks/*.
On acquire success the returned lease renews every 20s with a 60s TTL. If the control plane
is unreachable for ~30s the guard falls back to a process-local ReentrantLock and logs a
warning.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public SandboxLease tryEnter(SandboxIsolationKey key) throws InterruptedException | 设置该参数。 Performs the try enter operation. |
方法详情Method Detail
tryEnter
public SandboxLease tryEnter(SandboxIsolationKey key) throws InterruptedException
设置该参数。
Performs the try enter operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
key | SandboxIsolationKey | 键(类型 `SandboxIsolationKey`)。The key. |
SandboxLease返回SandboxLease。Returns sandbox lease.
InterruptedException可能抛出 `InterruptedException`。Thrown when the operation cannot be completed.
源码Source
io/agentscope/extensions/aistio/store/ControlPlaneSandboxExecutionGuard.java:74–129