Class ClientListenerMetrics
- java.lang.Object
-
- org.apache.ignite.internal.processors.odbc.ClientListenerMetrics
-
public class ClientListenerMetrics extends Object
Client listener metrics.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAFF_KEY_HITSstatic StringAFF_KEY_MISSESstatic StringAFF_QRY_HITSstatic StringAFF_QRY_MISSESstatic StringMETRIC_ACEPTEDNumber of successfully established sessions.static StringMETRIC_REJECTED_AUTHENTICATIONHandshakes rejected by authentication metric label.static StringMETRIC_REJECTED_TIMEOUTHandshakes rejected by timeout metric label.static StringMETRIC_REJECTED_TOTALTotal number of rejected handshakes.
-
Constructor Summary
Constructors Constructor Description ClientListenerMetrics(MetricRegistryImpl mreg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringclientTypeLabel(byte clientType)Get label for a client.voidonAffinityKeyHit()voidonAffinityKeyMiss()voidonAffinityQryHit()voidonAffinityQryMiss()voidonFailedAuth()Callback invoked when authentication is failed.voidonGeneralReject()Callback invoked when handshake is rejected.voidonHandshakeAccept(byte clientType)Callback invoked when handshake is accepted.voidonHandshakeTimeout()Callback invoked when handshake is timed out.
-
-
-
Field Detail
-
METRIC_REJECTED_TIMEOUT
public static final String METRIC_REJECTED_TIMEOUT
Handshakes rejected by timeout metric label.- See Also:
- Constant Field Values
-
METRIC_REJECTED_AUTHENTICATION
public static final String METRIC_REJECTED_AUTHENTICATION
Handshakes rejected by authentication metric label.- See Also:
- Constant Field Values
-
METRIC_REJECTED_TOTAL
public static final String METRIC_REJECTED_TOTAL
Total number of rejected handshakes.- See Also:
- Constant Field Values
-
METRIC_ACEPTED
public static final String METRIC_ACEPTED
Number of successfully established sessions.- See Also:
- Constant Field Values
-
AFF_KEY_HITS
public static final String AFF_KEY_HITS
- See Also:
- Constant Field Values
-
AFF_KEY_MISSES
public static final String AFF_KEY_MISSES
- See Also:
- Constant Field Values
-
AFF_QRY_HITS
public static final String AFF_QRY_HITS
- See Also:
- Constant Field Values
-
AFF_QRY_MISSES
public static final String AFF_QRY_MISSES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClientListenerMetrics
public ClientListenerMetrics(MetricRegistryImpl mreg)
- Parameters:
mreg- Metrics registry.
-
-
Method Detail
-
onHandshakeTimeout
public void onHandshakeTimeout()
Callback invoked when handshake is timed out.
-
onFailedAuth
public void onFailedAuth()
Callback invoked when authentication is failed.
-
onGeneralReject
public void onGeneralReject()
Callback invoked when handshake is rejected.
-
onHandshakeAccept
public void onHandshakeAccept(byte clientType)
Callback invoked when handshake is accepted.- Parameters:
clientType- Client type.
-
onAffinityKeyHit
public void onAffinityKeyHit()
-
onAffinityKeyMiss
public void onAffinityKeyMiss()
-
onAffinityQryHit
public void onAffinityQryHit()
-
onAffinityQryMiss
public void onAffinityQryMiss()
-
clientTypeLabel
public static String clientTypeLabel(byte clientType)
Get label for a client.- Parameters:
clientType- Client type.- Returns:
- Label for a client.
-
-