AS AgentScopeAPI 手册 / API Reference

Lifecycle

@JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public static class Lifecycle
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:88–119

生命周期,在隔离环境中安全执行代码和工具。位于 io.agentscope.extensions.sandbox.kubernetes.client.crd 包。核心成员包括 getShutdownTime、setShutdownTime、getShutdownPolicy、setShutdownPolicy、Lifecycle。

A class in io.agentscope.extensions.sandbox.kubernetes.client.crd that executes code and tools inside isolated environments. Declared in io.agentscope.extensions.sandbox.kubernetes.client.crd.

构造器摘要Constructor Summary

构造器Constructor说明Description
public Lifecycle()
初始化 `Lifecycle` 实例。
Creates a new instance.
public Lifecycle(String shutdownTime, String shutdownPolicy)
初始化 `Lifecycle` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String getShutdownTime()
获取 `getShutdownTime`。
Returns the shutdown time.
public void setShutdownTime(String shutdownTime)
设置 `setShutdownTime`。
Sets the shutdown time.
public String getShutdownPolicy()
获取 `getShutdownPolicy`。
Returns the shutdown policy.
public void setShutdownPolicy(String shutdownPolicy)
设置 `setShutdownPolicy`。
Sets the shutdown policy.

构造器详情Constructor Detail

Lifecycle

public Lifecycle()

初始化 Lifecycle 实例。

Creates a new instance.

源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:97

Lifecycle

public Lifecycle(String shutdownTime, String shutdownPolicy)

初始化 Lifecycle 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
shutdownTimeStringshutdown 时间(类型 `String`)。The shutdown time.
shutdownPolicyStringshutdown 策略(类型 `String`)。The shutdown policy.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:99–102

方法详情Method Detail

getShutdownTime

public String getShutdownTime()

获取 getShutdownTime。

Returns the shutdown time.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:104–106

setShutdownTime

public void setShutdownTime(String shutdownTime)

设置 setShutdownTime。

Sets the shutdown time.

参数Parameters
名称Name类型Type说明Description
shutdownTimeStringshutdown 时间(类型 `String`)。The shutdown time.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:108–110

getShutdownPolicy

public String getShutdownPolicy()

获取 getShutdownPolicy。

Returns the shutdown policy.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:112–114

setShutdownPolicy

public void setShutdownPolicy(String shutdownPolicy)

设置 setShutdownPolicy。

Sets the shutdown policy.

参数Parameters
名称Name类型Type说明Description
shutdownPolicyStringshutdown 策略(类型 `String`)。The shutdown policy.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:116–118
基于官方固定版本源码静态生成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.