package org.mimosaframework.core.server;

import org.mimosaframework.core.exception.ServerException;

import java.util.List;

public interface JoinServer extends Server {

    void setLeaderServerHost(String host);

    void setLeaderServerPort(int port);

    void joinServerGroup() throws ServerException;

    List<ServerNode> checkServerGroup();

    void notifyServerGroupRemoved(List<ServerNode> nodes) throws ServerException;

    void setLeaderServer(boolean isLeaderServer);

    boolean isLeaderServer();
}
