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

cn.novelweb.tool.upload.fastdfs.conn.CommandExecutor Maven / Gradle / Ivy

package cn.novelweb.tool.upload.fastdfs.conn;

import cn.novelweb.tool.upload.fastdfs.protocol.storage.AbstractStorageCommand;
import cn.novelweb.tool.upload.fastdfs.protocol.tracker.AbstractTrackerCommand;

import java.net.InetSocketAddress;

/**
 * 

FastDFS命令执行器

*

2020-02-03 16:38

* * @author LiZW **/ public interface CommandExecutor { /** * 在Tracker Server上执行命令 * * @param command Tracker Server命令 * @param 返回数据类型 * @return 返回数据 */ T execute(AbstractTrackerCommand command); /** * 在Storage Server上执行命令 * * @param address Storage Server地址 * @param command Storage Server命令 * @param 返回数据类型 * @return 返回数据 */ T execute(InetSocketAddress address, AbstractStorageCommand command); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy