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

com.netflix.eureka2.registry.DataCenterInfo Maven / Gradle / Ivy

There is a newer version: 2.0.0-DP4
Show newest version
package com.netflix.eureka2.registry;

import java.util.List;

/**
 * {@link DataCenterInfo} encapsulates information about the data center where a given
 * server is running, plus server specific information, like IP addresses, host names, etc.
 *
 * Because for certain datacenters there are multiple network interfaces per server,
 * it is important to choose optimal interfaces for a pair of servers (private for collocated servers,
 * public if in different regions, etc). To support this process in a transparent way
 * eureka-client API provides peer address resolver abstractions.
 *
 * @author David Liu
 */
public abstract class DataCenterInfo {

    public abstract String getName();

    public abstract List getAddresses();

    public abstract NetworkAddress getDefaultAddress();

    public abstract static class DataCenterInfoBuilder {
        public abstract I build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy