package com.pqs9900.service.DataInfo;

import com.pqs9900.pojo.DataInfo.MiddRun;
import com.pqs9900.pojo.DataInfo.MiddRunTree;
import org.apache.kafka.common.protocol.types.Field;

import java.util.List;

/**
 * @Author denghuajun
 * @Description //TODO 中间件表service
 * @Date 2019/3/15 13:47
 **/
public interface MiddRunService {
    //查询中间件信息
    List<MiddRun> getMiddRun(String middIndex);

    //查询所有中间件信息
    List<MiddRun> getMiddRuns();

    //树的形成
    List<MiddRunTree> getTreeType();

    //新增
    String saveMiddRun(String middRunName, String ip, int port);

    //修改
    String updateMiddRun(String middIndex,String middRunName, String ip, int port);

    //删除
    String deleteMiddRun(String middIndex);

    //根据id查询
    MiddRun selectMiddRun(String middIndex);
}
