Interface LoginModuleMonitor
- All Superinterfaces:
org.apache.jackrabbit.oak.stats.Monitor<LoginModuleMonitor>
- All Known Implementing Classes:
LoginModuleStats
@ProviderType
public interface LoginModuleMonitor
extends org.apache.jackrabbit.oak.stats.Monitor<LoginModuleMonitor>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Class<LoginModuleMonitor>voidEvent to be called in the case there is an error in the login chain.default voidloginFailed(@NotNull LoginException loginException, @Nullable Credentials credentials) Marks a failed login attempt for the givenCredentialsthat resulted in the givenLoginException.default voidprincipalsCollected(long timeTakenNanos, int numberOfPrincipals) Record the time taken to collect the given number of principals during the commit phase of a givenLoginModule.
-
Field Details
-
NOOP
-
-
Method Details
-
loginError
void loginError()Event to be called in the case there is an error in the login chain. This is not covering failed logins, but actual operational errors that probably need to be investigated. Any triggered event should have a corresponding error logged to make this investigation possible.- See Also:
-
loginFailed
default void loginFailed(@NotNull @NotNull LoginException loginException, @Nullable @Nullable Credentials credentials) Marks a failed login attempt for the givenCredentialsthat resulted in the givenLoginException.- Parameters:
loginException- TheLoginExceptionraised by the failed login attempt.credentials- The credentials used for login.
-
principalsCollected
default void principalsCollected(long timeTakenNanos, int numberOfPrincipals) Record the time taken to collect the given number of principals during the commit phase of a givenLoginModule.- Parameters:
timeTakenNanos- The time in nanosecondsnumberOfPrincipals- The number of principals that were collected.
-
getMonitorClass
- Specified by:
getMonitorClassin interfaceorg.apache.jackrabbit.oak.stats.Monitor<LoginModuleMonitor>
-
getMonitorProperties
- Specified by:
getMonitorPropertiesin interfaceorg.apache.jackrabbit.oak.stats.Monitor<LoginModuleMonitor>
-