Class Utilities


  • public class Utilities
    extends Object
    Run level service related utilities.
    Author:
    tbeerbower
    • Constructor Detail

      • Utilities

        public Utilities()
    • Method Detail

      • getRunLevelValue

        public static int getRunLevelValue​(ServiceLocator locator,
                                           Descriptor descriptor)
        Get the run level value from the metadata of the given descriptor.
        Parameters:
        descriptor - the descriptor to get the run level for
        Returns:
        the run level
      • getRunLevelMode

        public static int getRunLevelMode​(ServiceLocator locator,
                                          Descriptor descriptor,
                                          Integer modeOverride)
        Get the run level mode from the metadata of the given descriptor.
        Parameters:
        descriptor - the descriptor
        Returns:
        the mode