Enum EurekaMonitors

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EurekaMonitors>

    public enum EurekaMonitors
    extends java.lang.Enum<EurekaMonitors>
    The enum that encapsulates all statistics monitored by Eureka.

    Eureka Monitoring is done using Servo. The users who wants to take advantage of the monitoring should read up on Servo

    • Enum Constant Detail

      • GET_ALL_CACHE_MISS

        public static final EurekaMonitors GET_ALL_CACHE_MISS
      • GET_ALL_CACHE_MISS_DELTA

        public static final EurekaMonitors GET_ALL_CACHE_MISS_DELTA
      • GET_ALL_WITH_REMOTE_REGIONS_CACHE_MISS

        public static final EurekaMonitors GET_ALL_WITH_REMOTE_REGIONS_CACHE_MISS
      • GET_ALL_WITH_REMOTE_REGIONS_CACHE_MISS_DELTA

        public static final EurekaMonitors GET_ALL_WITH_REMOTE_REGIONS_CACHE_MISS_DELTA
      • GET_ALL_DELTA_WITH_REMOTE_REGIONS

        public static final EurekaMonitors GET_ALL_DELTA_WITH_REMOTE_REGIONS
      • GET_ALL_WITH_REMOTE_REGIONS

        public static final EurekaMonitors GET_ALL_WITH_REMOTE_REGIONS
      • STATUS_OVERRIDE_DELETE

        public static final EurekaMonitors STATUS_OVERRIDE_DELETE
      • CANCEL_NOT_FOUND

        public static final EurekaMonitors CANCEL_NOT_FOUND
      • REJECTED_REPLICATIONS

        public static final EurekaMonitors REJECTED_REPLICATIONS
      • FAILED_REPLICATIONS

        public static final EurekaMonitors FAILED_REPLICATIONS
      • RATE_LIMITED_CANDIDATES

        public static final EurekaMonitors RATE_LIMITED_CANDIDATES
      • RATE_LIMITED_FULL_FETCH

        public static final EurekaMonitors RATE_LIMITED_FULL_FETCH
      • RATE_LIMITED_FULL_FETCH_CANDIDATES

        public static final EurekaMonitors RATE_LIMITED_FULL_FETCH_CANDIDATES
    • Method Detail

      • values

        public static EurekaMonitors[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EurekaMonitors c : EurekaMonitors.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EurekaMonitors valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • increment

        public void increment()
        Increment the counter for the given statistic.
      • increment

        public void increment​(boolean isReplication)
        Increment the counter for the given statistic based on whether this is because of replication from other eureka servers or it is a eureka client initiated action.
        Parameters:
        isReplication - true if this a replication, false otherwise.
      • getName

        public java.lang.String getName()
        Gets the statistic name of this monitor.
        Returns:
        the statistic name.
      • getZoneSpecificName

        public java.lang.String getZoneSpecificName()
        Gets the zone specific statistic name of this monitor. Applies only for AWS cloud.
        Returns:
        the zone specific statistic name.
      • getDescription

        public java.lang.String getDescription()
        Gets the description of this statistic means.
        Returns:
        the description of this statistic means.
      • getCount

        public long getCount()
        Gets the actual counter value for this statistic.
        Returns:
        the long value representing the number of times this statistic has occurred.
      • getZoneSpecificCount

        public long getZoneSpecificCount()
        Gets the zone specific counter value for this statistic. This is application only for AWS cloud environment.
        Returns:
        the long value representing the number of times this statistic has occurred.
      • registerAllStats

        public static void registerAllStats()
        Register all statistics with Servo.
      • shutdown

        public static void shutdown()
        Unregister all statistics from Servo.