com.netflix.eureka2.registry.DataCenterInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eureka-core Show documentation
Show all versions of eureka-core Show documentation
eureka-core developed by Netflix
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();
}
}