FileSystemConfig
@JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "fileSystemType" ) @JsonSubTypes({ @JsonSubTypes.Type(value = LocalFileSystemConfig.class, name = "LOCAL"), @JsonSubTypes.Type(value = OssConfig.class, name = "OSS") }) public abstract class FileSystemConfig
io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:28–137文件系统配置,保存相关配置项。位于 io.agentscope.runtime.sandbox.manager.fs 包。核心成员包括 createStorageManager、getFileSystemType、getReadonlyMounts、getStorageFolderPath、getMountDir、getNonCopyMount。
A class in io.agentscope.runtime.sandbox.manager.fs that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.fs.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.runtime.sandbox.manager.fs that deploys, schedules and serves agents. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
protected FileSystemConfig(FileSystemType fileSystemType, Map<String, String> readonlyMounts, String storageFolderPath, String mountDir, Map<String, String> nonCopyMount) | 初始化 `FileSystemConfig` 实例。 Creates a new instance. |
protected FileSystemConfig(FileSystemType fileSystemType) | 初始化 `FileSystemConfig` 实例。 Creates a new instance. |
protected FileSystemConfig(Builder<?> builder) | 初始化 `FileSystemConfig` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public abstract StorageManager createStorageManager()abstract | 创建存储管理器。 Creates the storage manager. |
public FileSystemType getFileSystemType() | 获取文件系统类型。 Returns the file system type. |
public Map<String, String> getReadonlyMounts() | 获取 `getReadonlyMounts`。 Returns the readonly mounts. |
public String getStorageFolderPath() | 获取 `getStorageFolderPath`。 Returns the storage folder path. |
public String getMountDir() | 获取 `getMountDir`。 Returns the mount dir. |
public Map<String, String> getNonCopyMount() | 获取 `getNonCopyMount`。 Returns the non copy mount. |
构造器详情Constructor Detail
FileSystemConfig
protected FileSystemConfig(FileSystemType fileSystemType, Map<String, String> readonlyMounts, String storageFolderPath, String mountDir, Map<String, String> nonCopyMount)
初始化 FileSystemConfig 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
fileSystemType | FileSystemType | 文件系统类型(类型 `FileSystemType`)。The file system type. |
readonlyMounts | Map<String, String> | 只读 Mounts(类型 `Map`)。The readonly mounts. |
storageFolderPath | String | 存储 Folder 路径(类型 `String`)。The storage folder path. |
mountDir | String | mount 目录(类型 `String`)。The mount dir. |
nonCopyMount | Map<String, String> | non Copy Mount(类型 `Map`)。The non copy mount. |
io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:44–55FileSystemConfig
protected FileSystemConfig(FileSystemType fileSystemType)
初始化 FileSystemConfig 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
fileSystemType | FileSystemType | 文件系统类型(类型 `FileSystemType`)。The file system type. |
io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:57–59FileSystemConfig
protected FileSystemConfig(Builder<?> builder)
初始化 FileSystemConfig 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
builder | Builder<?> | 构建器(类型 `Builder`)。The builder. |
io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:63–69方法详情Method Detail
createStorageManager
public abstract StorageManager createStorageManager()
创建存储管理器。
Creates the storage manager.
StorageManagerio/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:61getFileSystemType
public FileSystemType getFileSystemType()
获取文件系统类型。
Returns the file system type.
FileSystemTypeio/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:71–73getReadonlyMounts
public Map<String, String> getReadonlyMounts()
获取 getReadonlyMounts。
Returns the readonly mounts.
Map<String, String>io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:75–77getStorageFolderPath
public String getStorageFolderPath()
获取 getStorageFolderPath。
Returns the storage folder path.
Stringio/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:79–81getMountDir
public String getMountDir()
获取 getMountDir。
Returns the mount dir.
Stringio/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:83–85getNonCopyMount
public Map<String, String> getNonCopyMount()
获取 getNonCopyMount。
Returns the non copy mount.
Map<String, String>io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:87–89嵌套类详情Nested Class Detail
Builder
public static abstract class Builder<T extends Builder<T>>构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.fs 包。核心成员包括 self、readonlyMounts、addReadonlyMount、addNonCopyMount、storageFolderPath、mountDir。
A class in io.agentscope.runtime.sandbox.manager.fs that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.fs.