com.netflix.eureka.util
Enum EurekaMonitors

java.lang.Object
  extended by java.lang.Enum<EurekaMonitors>
      extended by com.netflix.eureka.util.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 Summary
CANCEL
           
CANCEL_NOT_FOUND
           
EXPIRED
           
FAILED_REPLICATIONS
           
GET_ALL
           
GET_ALL_CACHE_MISS
           
GET_ALL_CACHE_MISS_DELTA
           
GET_ALL_DELTA
           
GET_ALL_DELTA_WITH_REMOTE_REGIONS
           
GET_ALL_WITH_REMOTE_REGIONS
           
GET_ALL_WITH_REMOTE_REGIONS_CACHE_MISS
           
GET_ALL_WITH_REMOTE_REGIONS_CACHE_MISS_DELTA
           
REGISTER
           
REJECTED_REPLICATIONS
           
RENEW
           
RENEW_NOT_FOUND
           
STATUS_UPDATE
           
 
Method Summary
 long getCount()
          Gets the actual counter value for this statistic.
 java.lang.String getDescription()
          Gets the description of this statistic means.
 java.lang.String getName()
          Gets the statistic name of this monitor.
 long getZoneSpecificCount()
          Gets the zone specific counter value for this statistic.
 java.lang.String getZoneSpecificName()
          Gets the zone specific statistic name of this monitor.
 void increment()
          Increment the counter for the given statistic.
 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.
static void registerAllStats()
          Register all statistics with Servo.
static void shutdown()
          Unregister all statistics from Servo.
static EurekaMonitors valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EurekaMonitors[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RENEW

public static final EurekaMonitors RENEW

CANCEL

public static final EurekaMonitors CANCEL

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

public static final EurekaMonitors GET_ALL_DELTA

GET_ALL_DELTA_WITH_REMOTE_REGIONS

public static final EurekaMonitors GET_ALL_DELTA_WITH_REMOTE_REGIONS

GET_ALL

public static final EurekaMonitors GET_ALL

GET_ALL_WITH_REMOTE_REGIONS

public static final EurekaMonitors GET_ALL_WITH_REMOTE_REGIONS

REGISTER

public static final EurekaMonitors REGISTER

EXPIRED

public static final EurekaMonitors EXPIRED

STATUS_UPDATE

public static final EurekaMonitors STATUS_UPDATE

CANCEL_NOT_FOUND

public static final EurekaMonitors CANCEL_NOT_FOUND

RENEW_NOT_FOUND

public static final EurekaMonitors RENEW_NOT_FOUND

REJECTED_REPLICATIONS

public static final EurekaMonitors REJECTED_REPLICATIONS

FAILED_REPLICATIONS

public static final EurekaMonitors FAILED_REPLICATIONS
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.