com.github.tobato.fastdfs.proto.storage.StorageQueryFileInfoCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastdfs-client Show documentation
Show all versions of fastdfs-client Show documentation
基于yuqih发布的代码与fastdfs-client 官方1.26版本的重构
package com.github.tobato.fastdfs.proto.storage;
import com.github.tobato.fastdfs.domain.FileInfo;
import com.github.tobato.fastdfs.proto.AbstractFdfsCommand;
import com.github.tobato.fastdfs.proto.FdfsResponse;
import com.github.tobato.fastdfs.proto.storage.internal.StorageQueryFileInfoRequest;
/**
* 文件删除命令
*
* @author tobato
*
*/
public class StorageQueryFileInfoCommand extends AbstractFdfsCommand {
/**
* 文件上传命令
*
* @param storeIndex 存储节点
* @param inputStream 输入流
* @param fileExtName 文件扩展名
* @param size 文件大小
* @param isAppenderFile 是否添加模式
*/
public StorageQueryFileInfoCommand(String groupName, String path) {
super();
this.request = new StorageQueryFileInfoRequest(groupName, path);
// 输出响应
this.response = new FdfsResponse() {
// default response
};
}
}