com.github.tobato.fastdfs.service.TrackerClient 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.service;
import java.util.List;
import com.github.tobato.fastdfs.domain.GroupState;
import com.github.tobato.fastdfs.domain.StorageNode;
import com.github.tobato.fastdfs.domain.StorageNodeInfo;
import com.github.tobato.fastdfs.domain.StorageState;
/**
* 目录服务(Tracker)客户端接口
*
* @author tobato
*/
public interface TrackerClient {
/**
* 获取存储节点 get the StoreStorage Client
*
* @return
*/
StorageNode getStoreStorage();
/**
* 按组获取存储节点 get the StoreStorage Client by group
*
* @param groupName
* @return
*/
StorageNode getStoreStorage(String groupName);
/**
* 获取读取存储节点 get the fetchStorage Client by group and filename
*
* @param groupName
* @param filename
* @return
*/
StorageNodeInfo getFetchStorage(String groupName, String filename);
/**
* 获取更新节点 get the updateStorage Client by group and filename
*
* @param groupName
* @param filename
* @return
*/
StorageNodeInfo getUpdateStorage(String groupName, String filename);
/**
* 获取组状态list groups
*
* @return
*/
List listGroups();
/**
* 按组名获取存储节点状态list storages by groupName
*
* @param groupName
* @return
*/
List listStorages(String groupName);
/**
* 获取存储状态 list storages by groupName and storageIpAddr
*
* @param groupName
* @param storageIpAddr
* @return
*/
List listStorages(String groupName, String storageIpAddr);
/**
* 删除存储节点 delete storage from TrackerServer
*
* @param groupName
* @param storageIpAddr
*/
void deleteStorage(String groupName, String storageIpAddr);
}