Class JohnsonEventPredicates
- java.lang.Object
-
- com.atlassian.confluence.internal.health.JohnsonEventPredicates
-
@ParametersAreNonnullByDefault public final class JohnsonEventPredicates extends Object
Predicates relating to Johnson events.- Since:
- 6.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NonNull Predicate<com.atlassian.johnson.event.Event>
blocksStartup()
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>
blocksStartupButNotLicenseInconsistency()
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 Detail
-
blocksStartup
public static @NonNull Predicate<com.atlassian.johnson.event.Event> blocksStartup()
Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up.- Returns:
- see above
-
blocksStartupButNotLicenseInconsistency
public static @NonNull Predicate<com.atlassian.johnson.event.Event> blocksStartupButNotLicenseInconsistency()
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
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
-
-