AdminCommandRegistry
public final class AdminCommandRegistry
源码Source
io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:33–66管理台命令注册表,承载智能体的部署、调度与服务化运行。位于 io.agentscope.spring.boot.admin.command 包。核心成员包括 register、find、list、size。
Thread-safe registry of AdminCommand instances.
Built-in commands are populated by BuiltinCommandRegistrar at startup. Third-party
starters (or business code) may inject additional commands via #register(AdminCommand) —
the registry is the single source of truth that powers the /actuator/agentscope-commands
catalog.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void register(AdminCommand command) | 设置注册。 Register a command. |
public Optional<AdminCommand> find(String id) | 设置查找。 Performs the find operation. |
public List<AdminCommand> list() | 返回列表。 All registered commands, sorted by `category` then `id` for stable output. |
public int size() | 返回大小。 Returns the size. |
方法详情Method Detail
register
public void register(AdminCommand command)
设置注册。
Register a command.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
command | AdminCommand | 命令(类型 `AdminCommand`)。The command. |
源码Source
io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:41–50find
public Optional<AdminCommand> find(String id)
设置查找。
Performs the find operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
Optional<AdminCommand>返回可选。Returns optional.
源码Source
io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:52–54list
public List<AdminCommand> list()
返回列表。
All registered commands, sorted by category then id for stable output.
List<AdminCommand>返回列出。Returns list.
源码Source
io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:57–61size
public int size()
返回大小。
Returns the size.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:63–65