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:97Lifecycle
public Lifecycle(String shutdownTime, String shutdownPolicy)
初始化 Lifecycle 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
shutdownTime | String | shutdown 时间(类型 `String`)。The shutdown time. |
shutdownPolicy | String | shutdown 策略(类型 `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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:104–106setShutdownTime
public void setShutdownTime(String shutdownTime)
设置 setShutdownTime。
Sets the shutdown time.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
shutdownTime | String | shutdown 时间(类型 `String`)。The shutdown time. |
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:108–110getShutdownPolicy
public String getShutdownPolicy()
获取 getShutdownPolicy。
Returns the shutdown policy.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:112–114setShutdownPolicy
public void setShutdownPolicy(String shutdownPolicy)
设置 setShutdownPolicy。
Sets the shutdown policy.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
shutdownPolicy | String | shutdown 策略(类型 `String`)。The shutdown policy. |
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:116–118