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

com.alibaba.schedulerx.worker.discovery.ServerDiscovery Maven / Gradle / Ivy

There is a newer version: 1.12.2
Show newest version
package com.alibaba.schedulerx.worker.discovery;

import akka.actor.ActorSelection;
import akka.actor.ActorSystem;

/**
 * Created by yanxun on 2018/5/23.
 *
 * @author yanxun
 * @date 2018/05/23
 */
public interface ServerDiscovery {
    /**
     * start sync process for keeping cache up to date
     * @throws Exception exceptions thrown in start process
     */
    void start(String namespace, String namespaceSource, String groupId, String appKey) throws Exception;

    /**
     * stop sync process for releasing resources
     * @throws Exception exceptions thrown in stop process
     */
    void stop() throws Exception;
    
    void reset(ActorSystem actorSystem);

    /**
     * get active server ip and port
     * @return active server's ip:port
     */
    String getActiveServerAddr();

    /**
     * get active server's actor path
     * @return active server's actor path
     */
//    ActorSelection getActiveServerActor();

    /**
     * get active heartbeat's actor path
     * @return active heartbeat actor
     */
    ActorSelection getActiveHeartBeatActor();

    ActorSelection getInstanceStatusRouter();

    ActorSelection getMapMasterRouter();

    ActorSelection getTaskStatusRouter();
    
    ActorSelection getLogRouter();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy