Interface PeerAwareInstanceRegistry

    • 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 in EurekaServerConfig.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)