Interface InstanceRegistry

    • 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 application
        includeRemoteRegion - true, if we need to include applications from remote regions as indicated by the region URL by this property EurekaServerConfig.getRemoteRegionUrls(), false otherwise
        Returns:
        the application
      • getInstanceByAppAndId

        com.netflix.appinfo.InstanceInfo getInstanceByAppAndId​(java.lang.String appName,
                                                               java.lang.String id)
        Gets the InstanceInfo information.
        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 the InstanceInfo information.
        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 region URL by this property EurekaServerConfig.getRemoteRegionUrls(), false otherwise
        Returns:
        the information about the instance.
      • clearRegistry

        void clearRegistry()
      • initializedResponseCache

        void initializedResponseCache()
      • 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()