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

com.github.df.restypass.lb.server.ServerContext Maven / Gradle / Ivy

The newest version!
package com.github.df.restypass.lb.server;

import java.util.List;

/**
 * 服务实例上下文
 * Created by darrenfu on 17-6-26.
 */
public interface ServerContext {


    /**
     * 获取所有service name
     *
     * @return the all service name
     */
    List getAllServiceName();

    /**
     * 获取所有服务实例列表
     *
     * @return the all server list
     */
    List getAllServerList();

    /**
     * 获取指定serviceName下的服务实例列表
     *
     * @param serviceName the service name
     * @return the server list
     */
    List getServerList(String serviceName);

    /**
     * 刷新所有服务实例
     */
    void refreshServerList();

    /**
     * 刷新serviceName下的服务实例
     *
     * @param serviceName the service name
     */
    void refreshServerList(String serviceName);


    /**
     * Sets server list.
     *
     * @param instanceList the instance list
     * @return the server list
     */
    List setServerList(List instanceList);

    /**
     * Add server list list.
     *
     * @param instanceList the instance list
     * @return the list
     */
    List addServerList(List instanceList);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy