文件存储设计类图(多存储+加密+通知)
2025-12-02 14:07:37 0 举报
文件存储模块设计类图,这是一个功能比较全面的模块设计,包括文件元数据与实体分离、多种存储方式、多种加密方式、以及文件修改通知的设计,具备完善的文件管理模块功能,不同模块标注了颜色
作者其他创作
大纲/内容
实现
CloudFileDataStore
-endpoint: String-accessKey: String-secretKey: String
FileNotificationRabbitMQ
-connectionFactory: ConnectionFactory-exchange: String-routingKey: String
1
使用
FileNotificationRocketMQ
-producer: DefaultMQProducer-topic: String
<<interface>>FileInfoStore
<<abstract>>AbstractFileDataStore
#fileEncryptor: FileEncryptor
操作
<<interface>>FileEncryptor
MemoryFileDataStore
继承
<<interface>>FileNotification
<<interface>>FileService
FileInfoDBStore
-dataSource: DataSource
FileServiceImpl
-fileDataStore: FileDataStore-fileInfoStore: FileInfoStore-fileNotification: FileNotification
FileInfo
-id: String-name: String-path: String-size: long-type: String-createTime: Date-updateTime: Date-encrypted: boolean-encryptionAlgorithm: String
+getters()+setters()
FileEncryptorA
-secretKey: String-iv: byte[]
FTPFileDataStore
-host: String-port: int-username: String-password: String
DiskFileDataStore
-basePath: String
FileEncryptorB
-publicKey: PublicKey-privateKey: PrivateKey
FileInfoESStore
-client: RestHighLevelClient-indexName: String
<<interface>>FileDataStore
0..1
0 条评论
下一页