Class AuthenticationMetrics
- java.lang.Object
-
- org.apache.pulsar.broker.authentication.metrics.AuthenticationMetrics
-
public class AuthenticationMetrics extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AuthenticationMetrics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidauthenticateFailure(java.lang.String providerName, java.lang.String authMethod, java.lang.String reason)Log authenticate failure event to the authentication metrics.static voidauthenticateSuccess(java.lang.String providerName, java.lang.String authMethod)Log authenticate success event to the authentication metrics.
-
-
-
Method Detail
-
authenticateSuccess
public static void authenticateSuccess(java.lang.String providerName, java.lang.String authMethod)Log authenticate success event to the authentication metrics.- Parameters:
providerName- The short class name of the providerauthMethod- Authentication method name
-
authenticateFailure
public static void authenticateFailure(java.lang.String providerName, java.lang.String authMethod, java.lang.String reason)Log authenticate failure event to the authentication metrics.- Parameters:
providerName- The short class name of the providerauthMethod- Authentication method name.reason- Failure reason.
-
-