AgentRunNasMountConfig
public class AgentRunNasMountConfig
io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:25–91智能体运行 Nas Mount 配置,保存相关配置项。位于 io.agentscope.extensions.sandbox.agentrun 包。核心成员包括 getServerAddr、setServerAddr、getMountDir、setMountDir、getRemotePath、setRemotePath。
NAS mount configuration for an AgentRun sandbox.
NAS mounts are configured at sandbox creation time and provide instance-level persistent
storage that survives sandbox restarts. Use a NAS mount as the workspaceRoot backing
store to get "free" persistence without managing tar snapshots.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AgentRunNasMountConfig() | 初始化 `AgentRunNasMountConfig` 实例。 Default constructor. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getServerAddr() | 获取 `getServerAddr`。 Returns the NAS server address (e.g. |
public AgentRunNasMountConfig setServerAddr(String serverAddr) | 设置 `setServerAddr`。 Sets the server addr. |
public String getMountDir() | 获取 `getMountDir`。 Returns the in-sandbox mount directory (must start with `/home`, `/mnt` or
`/data`). |
public AgentRunNasMountConfig setMountDir(String mountDir) | 设置 `setMountDir`。 Sets the mount dir. |
public String getRemotePath() | 获取远程路径。 Returns the remote path on the NAS filesystem to mount. |
public AgentRunNasMountConfig setRemotePath(String remotePath) | 设置远程路径。 Sets the remote path. |
public boolean isEnableTLS() | 判断是否启用 TLS。 Returns whether TLS is enabled for the NAS connection. |
public AgentRunNasMountConfig setEnableTLS(boolean enableTLS) | 设置启用 TLS。 Sets the enable TLS. |
构造器详情Constructor Detail
AgentRunNasMountConfig
public AgentRunNasMountConfig()
初始化 AgentRunNasMountConfig 实例。
Default constructor.
io/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:33方法详情Method Detail
getServerAddr
public String getServerAddr()
获取 getServerAddr。
Returns the NAS server address (e.g.
Stringio/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:40–42setServerAddr
public AgentRunNasMountConfig setServerAddr(String serverAddr)
设置 setServerAddr。
Sets the server addr.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
serverAddr | String | 服务端 Addr(类型 `String`)。The server addr. |
AgentRunNasMountConfigio/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:44–47getMountDir
public String getMountDir()
获取 getMountDir。
Returns the in-sandbox mount directory (must start with /home, /mnt or /data).
Stringio/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:55–57setMountDir
public AgentRunNasMountConfig setMountDir(String mountDir)
设置 setMountDir。
Sets the mount dir.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mountDir | String | mount 目录(类型 `String`)。The mount dir. |
AgentRunNasMountConfigio/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:59–62getRemotePath
public String getRemotePath()
获取远程路径。
Returns the remote path on the NAS filesystem to mount.
Stringio/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:69–71setRemotePath
public AgentRunNasMountConfig setRemotePath(String remotePath)
设置远程路径。
Sets the remote path.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
remotePath | String | 远程路径(类型 `String`)。The remote path. |
AgentRunNasMountConfigio/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:73–76isEnableTLS
public boolean isEnableTLS()
判断是否启用 TLS。
Returns whether TLS is enabled for the NAS connection.
booleanio/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:83–85setEnableTLS
public AgentRunNasMountConfig setEnableTLS(boolean enableTLS)
设置启用 TLS。
Sets the enable TLS.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableTLS | boolean | 启用 TLS(类型 `boolean`)。The enable TLS. |
AgentRunNasMountConfigio/agentscope/extensions/sandbox/agentrun/AgentRunNasMountConfig.java:87–90