|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.discovery.shared.Applications
@Serializer(value="com.netflix.discovery.converters.EntityBodyConverter") public class Applications
The class that wraps all the registry information returned by eureka server.
Note that the registry information is fetched from eureka server as specified
in EurekaClientConfig.getRegistryFetchIntervalSeconds().Once the
information is fetched it is shuffled and also filtered for instances with
InstanceInfo.InstanceStatus.UP status as specified by the configuration
EurekaClientConfig.shouldFilterOnlyUpInstances().
| Constructor Summary | |
|---|---|
Applications()
|
|
Applications(java.util.List<Application> apps)
|
|
| Method Summary | |
|---|---|
void |
addApplication(Application app)
Add the application to the list. |
java.lang.String |
getAppsHashCode()
Used by the eureka server. |
java.util.List<InstanceInfo> |
getInstancesBySecureVirtualHostName(java.lang.String secureVirtualHostName)
Gets the list of secure instances associated to a virtual host name. |
java.util.List<InstanceInfo> |
getInstancesByVirtualHostName(java.lang.String virtualHostName)
Gets the list of instances associated to a virtual host name. |
java.util.concurrent.atomic.AtomicLong |
getNextIndex(java.lang.String virtualHostname,
boolean secure)
Gets the next round-robin index for the given virtual host name. |
java.lang.String |
getReconcileHashCode()
Gets the hash code for this applications instance. |
static java.lang.String |
getReconcileHashCode(java.util.TreeMap<java.lang.String,java.util.concurrent.atomic.AtomicInteger> instanceCountMap)
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getReconcileMapDiff(Applications apps)
Gets the exact difference between this applications instance and another one. |
java.util.List<Application> |
getRegisteredApplications()
Gets the list of all registered applications from eureka. |
Application |
getRegisteredApplications(java.lang.String appName)
Gets the list of all registered applications for the given application name. |
java.lang.Long |
getVersion()
Deprecated. |
void |
populateInstanceCountMap(java.util.TreeMap<java.lang.String,java.util.concurrent.atomic.AtomicInteger> instanceCountMap)
|
void |
setAppsHashCode(java.lang.String hashCode)
Used by the eureka server. |
void |
setVersion(java.lang.Long version)
Deprecated. |
void |
shuffleAndIndexInstances(java.util.Map<java.lang.String,Applications> remoteRegionsRegistry,
EurekaClientConfig clientConfig,
InstanceRegionChecker instanceRegionChecker)
|
void |
shuffleInstances(boolean filterUpInstances)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Applications()
public Applications(java.util.List<Application> apps)
| Method Detail |
|---|
public void addApplication(Application app)
app - the application to be added.public java.util.List<Application> getRegisteredApplications()
public Application getRegisteredApplications(java.lang.String appName)
appName - the application name for which the result need to be fetched.
public java.util.List<InstanceInfo> getInstancesByVirtualHostName(java.lang.String virtualHostName)
virtualHostName - the virtual hostname for which the instances need to be
returned.
public java.util.List<InstanceInfo> getInstancesBySecureVirtualHostName(java.lang.String secureVirtualHostName)
secureVirtualHostName - the virtual hostname for which the secure instances need to be
returned.
@Deprecated public void setVersion(java.lang.Long version)
@Deprecated public java.lang.Long getVersion()
public void setAppsHashCode(java.lang.String hashCode)
hashCode - public java.lang.String getAppsHashCode()
public java.lang.String getReconcileHashCode()
public void populateInstanceCountMap(java.util.TreeMap<java.lang.String,java.util.concurrent.atomic.AtomicInteger> instanceCountMap)
public static java.lang.String getReconcileHashCode(java.util.TreeMap<java.lang.String,java.util.concurrent.atomic.AtomicInteger> instanceCountMap)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getReconcileMapDiff(Applications apps)
apps - the applications for which to compare this one.
public void shuffleInstances(boolean filterUpInstances)
public void shuffleAndIndexInstances(java.util.Map<java.lang.String,Applications> remoteRegionsRegistry,
EurekaClientConfig clientConfig,
InstanceRegionChecker instanceRegionChecker)
public java.util.concurrent.atomic.AtomicLong getNextIndex(java.lang.String virtualHostname,
boolean secure)
virtualHostname - the virtual host name.secure - indicates whether it is a secure request or a non-secure
request.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||