Package com.netflix.eureka.registry
Interface InstanceRegistry
-
- All Superinterfaces:
LeaseManager<com.netflix.appinfo.InstanceInfo>,com.netflix.discovery.shared.LookupService<java.lang.String>
- All Known Subinterfaces:
PeerAwareInstanceRegistry
- All Known Implementing Classes:
AbstractInstanceRegistry,AwsInstanceRegistry,PeerAwareInstanceRegistryImpl
public interface InstanceRegistry extends LeaseManager<com.netflix.appinfo.InstanceInfo>, com.netflix.discovery.shared.LookupService<java.lang.String>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclearRegistry()booleandeleteStatusOverride(java.lang.String appName, java.lang.String id, com.netflix.appinfo.InstanceInfo.InstanceStatus newStatus, java.lang.String lastDirtyTimestamp, boolean isReplication)com.netflix.discovery.shared.ApplicationgetApplication(java.lang.String appName, boolean includeRemoteRegion)Get application information.com.netflix.discovery.shared.ApplicationsgetApplicationsFromLocalRegionOnly()com.netflix.appinfo.InstanceInfogetInstanceByAppAndId(java.lang.String appName, java.lang.String id)Gets theInstanceInfoinformation.com.netflix.appinfo.InstanceInfogetInstanceByAppAndId(java.lang.String appName, java.lang.String id, boolean includeRemoteRegions)Gets theInstanceInfoinformation.java.util.List<com.netflix.discovery.shared.Pair<java.lang.Long,java.lang.String>>getLastNCanceledInstances()java.util.List<com.netflix.discovery.shared.Pair<java.lang.Long,java.lang.String>>getLastNRegisteredInstances()longgetNumOfRenewsInLastMin()intgetNumOfRenewsPerMinThreshold()ResponseCachegetResponseCache()java.util.List<com.netflix.discovery.shared.Application>getSortedApplications()voidinitializedResponseCache()intisBelowRenewThresold()booleanisLeaseExpirationEnabled()Checks whether lease expiration is enabled.booleanisSelfPreservationModeEnabled()voidopenForTraffic(com.netflix.appinfo.ApplicationInfoManager applicationInfoManager, int count)java.util.Map<java.lang.String,com.netflix.appinfo.InstanceInfo.InstanceStatus>overriddenInstanceStatusesSnapshot()voidshutdown()booleanstatusUpdate(java.lang.String appName, java.lang.String id, com.netflix.appinfo.InstanceInfo.InstanceStatus newStatus, java.lang.String lastDirtyTimestamp, boolean isReplication)voidstoreOverriddenStatusIfRequired(java.lang.String id, com.netflix.appinfo.InstanceInfo.InstanceStatus overriddenStatus)Deprecated.voidstoreOverriddenStatusIfRequired(java.lang.String appName, java.lang.String id, com.netflix.appinfo.InstanceInfo.InstanceStatus overriddenStatus)-
Methods inherited from interface com.netflix.eureka.lease.LeaseManager
cancel, evict, register, renew
-
-
-
-
Method Detail
-
openForTraffic
void openForTraffic(com.netflix.appinfo.ApplicationInfoManager applicationInfoManager, int count)
-
shutdown
void shutdown()
-
storeOverriddenStatusIfRequired
@Deprecated void storeOverriddenStatusIfRequired(java.lang.String id, com.netflix.appinfo.InstanceInfo.InstanceStatus overriddenStatus)Deprecated.
-
storeOverriddenStatusIfRequired
void storeOverriddenStatusIfRequired(java.lang.String appName, java.lang.String id, com.netflix.appinfo.InstanceInfo.InstanceStatus overriddenStatus)
-
statusUpdate
boolean statusUpdate(java.lang.String appName, java.lang.String id, com.netflix.appinfo.InstanceInfo.InstanceStatus newStatus, java.lang.String lastDirtyTimestamp, boolean isReplication)
-
deleteStatusOverride
boolean deleteStatusOverride(java.lang.String appName, java.lang.String id, com.netflix.appinfo.InstanceInfo.InstanceStatus newStatus, java.lang.String lastDirtyTimestamp, boolean isReplication)
-
overriddenInstanceStatusesSnapshot
java.util.Map<java.lang.String,com.netflix.appinfo.InstanceInfo.InstanceStatus> overriddenInstanceStatusesSnapshot()
-
getApplicationsFromLocalRegionOnly
com.netflix.discovery.shared.Applications getApplicationsFromLocalRegionOnly()
-
getSortedApplications
java.util.List<com.netflix.discovery.shared.Application> getSortedApplications()
-
getApplication
com.netflix.discovery.shared.Application getApplication(java.lang.String appName, boolean includeRemoteRegion)Get application information.- Parameters:
appName- The name of the applicationincludeRemoteRegion- true, if we need to include applications from remote regions as indicated by the regionURLby this propertyEurekaServerConfig.getRemoteRegionUrls(), false otherwise- Returns:
- the application
-
getInstanceByAppAndId
com.netflix.appinfo.InstanceInfo getInstanceByAppAndId(java.lang.String appName, java.lang.String id)Gets theInstanceInfoinformation.- Parameters:
appName- the application name for which the information is requested.id- the unique identifier of the instance.- Returns:
- the information about the instance.
-
getInstanceByAppAndId
com.netflix.appinfo.InstanceInfo getInstanceByAppAndId(java.lang.String appName, java.lang.String id, boolean includeRemoteRegions)Gets theInstanceInfoinformation.- Parameters:
appName- the application name for which the information is requested.id- the unique identifier of the instance.includeRemoteRegions- true, if we need to include applications from remote regions as indicated by the regionURLby this propertyEurekaServerConfig.getRemoteRegionUrls(), false otherwise- Returns:
- the information about the instance.
-
clearRegistry
void clearRegistry()
-
initializedResponseCache
void initializedResponseCache()
-
getResponseCache
ResponseCache getResponseCache()
-
getNumOfRenewsInLastMin
long getNumOfRenewsInLastMin()
-
getNumOfRenewsPerMinThreshold
int getNumOfRenewsPerMinThreshold()
-
isBelowRenewThresold
int isBelowRenewThresold()
-
getLastNRegisteredInstances
java.util.List<com.netflix.discovery.shared.Pair<java.lang.Long,java.lang.String>> getLastNRegisteredInstances()
-
getLastNCanceledInstances
java.util.List<com.netflix.discovery.shared.Pair<java.lang.Long,java.lang.String>> getLastNCanceledInstances()
-
isLeaseExpirationEnabled
boolean isLeaseExpirationEnabled()
Checks whether lease expiration is enabled.- Returns:
- true if enabled
-
isSelfPreservationModeEnabled
boolean isSelfPreservationModeEnabled()
-
-