com.github.tobato.fastdfs.proto.tracker.TrackerGetStoreStorageCommand 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.tracker;
import com.github.tobato.fastdfs.domain.StorageNode;
import com.github.tobato.fastdfs.proto.AbstractFdfsCommand;
import com.github.tobato.fastdfs.proto.FdfsResponse;
import com.github.tobato.fastdfs.proto.tracker.internal.TrackerGetStoreStorageRequest;
import com.github.tobato.fastdfs.proto.tracker.internal.TrackerGetStoreStorageWithGroupRequest;
/**
* 获取存储节点命令
*
* @author tobato
*
*/
public class TrackerGetStoreStorageCommand extends AbstractFdfsCommand {
public TrackerGetStoreStorageCommand(String groupName) {
super.request = new TrackerGetStoreStorageWithGroupRequest(groupName);
super.response = new FdfsResponse() {
// default response
};
}
public TrackerGetStoreStorageCommand() {
super.request = new TrackerGetStoreStorageRequest();
super.response = new FdfsResponse() {
// default response
};
}
}