All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tobato.fastdfs.service.TrackerClient Maven / Gradle / Ivy

There is a newer version: 1.27.2
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy