Package org.apache.pinot.common.metrics
Enum BrokerGauge
- java.lang.Object
-
- java.lang.Enum<BrokerGauge>
-
- org.apache.pinot.common.metrics.BrokerGauge
-
- All Implemented Interfaces:
Serializable,Comparable<BrokerGauge>,AbstractMetrics.Gauge
public enum BrokerGauge extends Enum<BrokerGauge> implements AbstractMetrics.Gauge
Enumeration containing all the gauges exposed by the Pinot broker.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAX_BURST_QPSNETTY_CONNECTION_CONNECT_TIME_MSQUERY_QUOTA_CAPACITY_UTILIZATION_RATEQUERY_RATE_LIMIT_DISABLEDREQUEST_SIZERESIZE_TIME_MSUNHEALTHY_SERVERS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGaugeName()StringgetUnit()booleanisGlobal()Returns true if the gauge is global (not attached to a particular resource)static BrokerGaugevalueOf(String name)Returns the enum constant of this type with the specified name.static BrokerGauge[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUERY_QUOTA_CAPACITY_UTILIZATION_RATE
public static final BrokerGauge QUERY_QUOTA_CAPACITY_UTILIZATION_RATE
-
MAX_BURST_QPS
public static final BrokerGauge MAX_BURST_QPS
-
QUERY_RATE_LIMIT_DISABLED
public static final BrokerGauge QUERY_RATE_LIMIT_DISABLED
-
NETTY_CONNECTION_CONNECT_TIME_MS
public static final BrokerGauge NETTY_CONNECTION_CONNECT_TIME_MS
-
REQUEST_SIZE
public static final BrokerGauge REQUEST_SIZE
-
RESIZE_TIME_MS
public static final BrokerGauge RESIZE_TIME_MS
-
UNHEALTHY_SERVERS
public static final BrokerGauge UNHEALTHY_SERVERS
-
-
Method Detail
-
values
public static BrokerGauge[] 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 (BrokerGauge c : BrokerGauge.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BrokerGauge valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getGaugeName
public String getGaugeName()
- Specified by:
getGaugeNamein interfaceAbstractMetrics.Gauge
-
getUnit
public String getUnit()
- Specified by:
getUnitin interfaceAbstractMetrics.Gauge
-
isGlobal
public boolean isGlobal()
Returns true if the gauge is global (not attached to a particular resource)- Specified by:
isGlobalin interfaceAbstractMetrics.Gauge- Returns:
- true if the gauge is global
-
-