AS AgentScopeAPI 手册 / API Reference

AgentScopeJvmShutdownHook

public final class AgentScopeJvmShutdownHook
源码Source io/agentscope/core/shutdown/AgentScopeJvmShutdownHook.java:34–70

AgentScope Jvm Shutdown 钩子,为框架提供通用类型与基础能力。位于 io.agentscope.core.shutdown 包。核心成员包括 register。

JVM hook for SIGTERM graceful shutdown entry.

Shutdown order:

  • Trigger graceful shutdown (reject new requests, interrupt at checkpoints)

  • Wait for all active agent requests to complete or timeout

  • Close HTTP transports (only after agents are done)

方法摘要Method Summary

方法Method说明Description
public static void register(GracefulShutdownManager manager)
static
设置注册。
Performs the register operation.

方法详情Method Detail

register

public static void register(GracefulShutdownManager manager)
static

设置注册。

Performs the register operation.

参数Parameters
名称Name类型Type说明Description
managerGracefulShutdownManager管理器(类型 `GracefulShutdownManager`)。The manager.
源码Source io/agentscope/core/shutdown/AgentScopeJvmShutdownHook.java:43–69
基于官方固定版本源码静态生成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.