Class ControlPlaneSandboxExecutionGuard

java.lang.Object
io.agentscope.extensions.aistio.store.ControlPlaneSandboxExecutionGuard
All Implemented Interfaces:
io.agentscope.harness.agent.sandbox.SandboxExecutionGuard

public final class ControlPlaneSandboxExecutionGuard extends Object implements io.agentscope.harness.agent.sandbox.SandboxExecutionGuard
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.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.agentscope.harness.agent.sandbox.SandboxExecutionGuard

    io.agentscope.harness.agent.sandbox.SandboxExecutionGuard.NoopSandboxExecutionGuard
  • Method Summary

    Modifier and Type
    Method
    Description
    io.agentscope.harness.agent.sandbox.SandboxLease
    tryEnter(io.agentscope.harness.agent.sandbox.SandboxIsolationKey key)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • tryEnter

      public io.agentscope.harness.agent.sandbox.SandboxLease tryEnter(io.agentscope.harness.agent.sandbox.SandboxIsolationKey key) throws InterruptedException
      Specified by:
      tryEnter in interface io.agentscope.harness.agent.sandbox.SandboxExecutionGuard
      Throws:
      InterruptedException