Class NameMatcher<T extends org.quartz.utils.Key<?>>

  • Type Parameters:
    T - Type of the keys (trigger or job key) to match.
    All Implemented Interfaces:
    Serializable, org.quartz.Matcher<T>

    public class NameMatcher<T extends org.quartz.utils.Key<?>>
    extends org.quartz.impl.matchers.StringMatcher<T>
    Matches on name (ignores group) property of Keys.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • NameMatcher

        protected NameMatcher​(String compareTo,
                              org.quartz.impl.matchers.StringMatcher.StringOperatorName compareWith)
    • Method Detail

      • getValue

        protected String getValue​(T key)
        Specified by:
        getValue in class org.quartz.impl.matchers.StringMatcher<T extends org.quartz.utils.Key<?>>
      • anyGroup

        public static <T extends org.quartz.utils.Key<T>> NameMatcher<T> anyGroup()
        Returns:
        A NameMatcher that matches groups starting with the given string.
      • anyJobGroup

        public static NameMatcher<org.quartz.JobKey> anyJobGroup()
        Returns:
        A NameMatcher that matches job groups starting with the given string.
      • anyTriggerGroup

        public static NameMatcher<org.quartz.TriggerKey> anyTriggerGroup()
        Returns:
        A NameMatcher that matches trigger groups starting with the given string.
      • groupContains

        public static <T extends org.quartz.utils.Key<T>> NameMatcher<T> groupContains​(String compareTo)
        Type Parameters:
        T - Type of the keys (trigger or job key) to match.
        Parameters:
        compareTo - Value that must be contained in the key's name.
        Returns:
        A NameMatcher that matches groups containing the given string.
      • groupEndsWith

        public static <T extends org.quartz.utils.Key<T>> NameMatcher<T> groupEndsWith​(String compareTo)
        Type Parameters:
        T - Type of the keys (trigger or job key) to match.
        Parameters:
        compareTo - Value on which the key's name must end.
        Returns:
        A NameMatcher that matches groups ending with the given string.
      • groupEquals

        public static <T extends org.quartz.utils.Key<T>> NameMatcher<T> groupEquals​(String compareTo)
        Type Parameters:
        T - Type of the keys (trigger or job key) to match.
        Parameters:
        compareTo - Value to which the key's name must be equal.
        Returns:
        A NameMatcher that matches groups equaling the given string.
      • groupStartsWith

        public static <T extends org.quartz.utils.Key<T>> NameMatcher<T> groupStartsWith​(String compareTo)
        Type Parameters:
        T - Type of the keys (trigger or job key) to match.
        Parameters:
        compareTo - Value the key's name must start with.
        Returns:
        A NameMatcher that matches groups starting with the given string.
      • jobGroupContains

        public static NameMatcher<org.quartz.JobKey> jobGroupContains​(String compareTo)
        Parameters:
        compareTo - Value that must be contained in the key's name.
        Returns:
        A NameMatcher that matches job groups containing the given string.
      • jobGroupEndsWith

        public static NameMatcher<org.quartz.JobKey> jobGroupEndsWith​(String compareTo)
        Parameters:
        compareTo - Value on which the key's name must end.
        Returns:
        A NameMatcher that matches job groups ending with the given string.
      • jobGroupEquals

        public static NameMatcher<org.quartz.JobKey> jobGroupEquals​(String compareTo)
        Parameters:
        compareTo - Value to which the key's name must be equal.
        Returns:
        A NameMatcher that matches job groups equaling the given string.
      • jobGroupStartsWith

        public static NameMatcher<org.quartz.JobKey> jobGroupStartsWith​(String compareTo)
        Parameters:
        compareTo - Value the key's name must start with.
        Returns:
        A NameMatcher that matches job groups starting with the given string.
      • triggerGroupContains

        public static NameMatcher<org.quartz.TriggerKey> triggerGroupContains​(String compareTo)
        Parameters:
        compareTo - Value that must be contained in the key's name.
        Returns:
        A NameMatcher that matches trigger groups containing the given string.
      • triggerGroupEndsWith

        public static NameMatcher<org.quartz.TriggerKey> triggerGroupEndsWith​(String compareTo)
        Parameters:
        compareTo - Value on which the key's name must end.
        Returns:
        A NameMatcher that matches trigger groups ending with the given string.
      • triggerGroupEquals

        public static NameMatcher<org.quartz.TriggerKey> triggerGroupEquals​(String compareTo)
        Parameters:
        compareTo - Value to which the key's name must be equal.
        Returns:
        A NameMatcher that matches trigger groups equaling the given string.
      • triggerGroupStartsWith

        public static NameMatcher<org.quartz.TriggerKey> triggerGroupStartsWith​(String compareTo)
        Parameters:
        compareTo - Value the key's name must start with.
        Returns:
        A NameMatcher that matches trigger groups starting with the given string.