VolumeBinding
public class VolumeBinding
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:19–66Volume 绑定,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.sandbox.manager.model.fs 包。核心成员包括 getHostPath、setHostPath、getContainerPath、setContainerPath、getMode、setMode。
A class in io.agentscope.runtime.sandbox.manager.model.fs that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.sandbox.manager.model.fs.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public VolumeBinding(String hostPath, String containerPath, String mode) | 初始化 `VolumeBinding` 实例。 Creates a new instance. |
public VolumeBinding(String hostPath, String containerPath) | 初始化 `VolumeBinding` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getHostPath() | 获取 `getHostPath`。 Returns the host path. |
public void setHostPath(String hostPath) | 设置 `setHostPath`。 Sets the host path. |
public String getContainerPath() | 获取容器路径。 Returns the container path. |
public void setContainerPath(String containerPath) | 设置容器路径。 Sets the container path. |
public String getMode() | 获取模式。 Returns the mode. |
public void setMode(String mode) | 设置模式。 Sets the mode. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
构造器详情Constructor Detail
VolumeBinding
public VolumeBinding(String hostPath, String containerPath, String mode)
初始化 VolumeBinding 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
hostPath | String | host 路径(类型 `String`)。The host path. |
containerPath | String | 容器路径(类型 `String`)。The container path. |
mode | String | 模式(类型 `String`)。The mode. |
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:24–28VolumeBinding
public VolumeBinding(String hostPath, String containerPath)
初始化 VolumeBinding 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
hostPath | String | host 路径(类型 `String`)。The host path. |
containerPath | String | 容器路径(类型 `String`)。The container path. |
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:30–32方法详情Method Detail
getHostPath
public String getHostPath()
获取 getHostPath。
Returns the host path.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:34–36setHostPath
public void setHostPath(String hostPath)
设置 setHostPath。
Sets the host path.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
hostPath | String | host 路径(类型 `String`)。The host path. |
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:38–40getContainerPath
public String getContainerPath()
获取容器路径。
Returns the container path.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:42–44setContainerPath
public void setContainerPath(String containerPath)
设置容器路径。
Sets the container path.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
containerPath | String | 容器路径(类型 `String`)。The container path. |
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:46–48getMode
public String getMode()
获取模式。
Returns the mode.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:50–52setMode
public void setMode(String mode)
设置模式。
Sets the mode.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mode | String | 模式(类型 `String`)。The mode. |
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:54–56toString
public String toString()
返回 toString 结果。
Returns the to string.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/sandbox/manager/model/fs/VolumeBinding.java:58–65