Package com.netflix.eureka.registry
Interface PeerAwareInstanceRegistry
-
- All Superinterfaces:
InstanceRegistry,LeaseManager<com.netflix.appinfo.InstanceInfo>,com.netflix.discovery.shared.LookupService<java.lang.String>
- All Known Implementing Classes:
AwsInstanceRegistry,PeerAwareInstanceRegistryImpl
public interface PeerAwareInstanceRegistry extends InstanceRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinit(PeerEurekaNodes peerEurekaNodes)voidregister(com.netflix.appinfo.InstanceInfo info, boolean isReplication)booleanshouldAllowAccess(boolean remoteRegionRequired)Checks to see if the registry access is allowed or the server is in a situation where it does not all getting registry information.voidstatusUpdate(java.lang.String asgName, ASGResource.ASGStatus newStatus, boolean isReplication)intsyncUp()Populates the registry information from a peer eureka node.-
Methods inherited from interface com.netflix.eureka.registry.InstanceRegistry
clearRegistry, deleteStatusOverride, getApplication, getApplicationsFromLocalRegionOnly, getInstanceByAppAndId, getInstanceByAppAndId, getLastNCanceledInstances, getLastNRegisteredInstances, getNumOfRenewsInLastMin, getNumOfRenewsPerMinThreshold, getResponseCache, getSortedApplications, initializedResponseCache, isBelowRenewThresold, isLeaseExpirationEnabled, isSelfPreservationModeEnabled, openForTraffic, overriddenInstanceStatusesSnapshot, shutdown, statusUpdate, storeOverriddenStatusIfRequired, storeOverriddenStatusIfRequired
-
Methods inherited from interface com.netflix.eureka.lease.LeaseManager
cancel, evict, register, renew
-
-
-
-
Method Detail
-
init
void init(PeerEurekaNodes peerEurekaNodes) throws java.lang.Exception
- Throws:
java.lang.Exception
-
syncUp
int syncUp()
Populates the registry information from a peer eureka node. This operation fails over to other nodes until the list is exhausted if the communication fails.
-
shouldAllowAccess
boolean shouldAllowAccess(boolean remoteRegionRequired)
Checks to see if the registry access is allowed or the server is in a situation where it does not all getting registry information. The server does not return registry information for a period specified inEurekaServerConfig.getWaitTimeInMsWhenSyncEmpty(), if it cannot get the registry information from the peer eureka nodes at start up.- Returns:
- false - if the instances count from a replica transfer returned zero and if the wait time has not elapsed, otherwise returns true
-
register
void register(com.netflix.appinfo.InstanceInfo info, boolean isReplication)
-
statusUpdate
void statusUpdate(java.lang.String asgName, ASGResource.ASGStatus newStatus, boolean isReplication)
-
-