Class JohnsonEventPredicates
java.lang.Object
com.atlassian.confluence.internal.health.JohnsonEventPredicates
Predicates relating to Johnson events.
- Since:
- 6.5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Predicate<com.atlassian.johnson.event.Event>
Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up.static @NonNull Predicate<com.atlassian.johnson.event.Event>
Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up, but not a license inconsistency error.static @NonNull Predicate<com.atlassian.johnson.event.Event>
hasLevel
(JohnsonEventLevel eventLevel) Returns a predicate that checks whether the event has exactly the given level.static @NonNull Predicate<com.atlassian.johnson.event.Event>
hasType
(JohnsonEventType eventType) Returns a predicate that checks whether the event has exactly the given type.
-
Method Details
-
blocksStartup
Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up.- Returns:
- see above
-
blocksStartupButNotLicenseEvents
public static @NonNull Predicate<com.atlassian.johnson.event.Event> blocksStartupButNotLicenseEvents()Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up, but not a license inconsistency error. The behaviour is similar toblocksStartup()
, but this predicate excludesJohnsonEventType.LICENSE_INCONSISTENCY
andJohnsonEventType.LICENSE_INCOMPATIBLE
events.- Returns:
- see above
-
hasLevel
public static @NonNull Predicate<com.atlassian.johnson.event.Event> hasLevel(JohnsonEventLevel eventLevel) Returns a predicate that checks whether the event has exactly the given level.- Parameters:
eventLevel
- the level for which to check- Returns:
- see above
-
hasType
public static @NonNull Predicate<com.atlassian.johnson.event.Event> hasType(JohnsonEventType eventType) Returns a predicate that checks whether the event has exactly the given type.- Parameters:
eventType
- the type for which to check- Returns:
- see above
-