Class ProcessorUtils


  • @Deprecated(since="2021-05-27")
    public class ProcessorUtils
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.

    ProcessorUtils provides access to runtime info about processors, that may be overridden by system properties or environment variables.

    This can be useful in virtualized environments where the runtime may miss report the available resources.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AVAILABLE_PROCESSORS
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessorUtils()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static int availableProcessors()
      Deprecated.
      Returns the number of available processors, from System Property "JETTY_AVAILABLE_PROCESSORS", or if not set then from environment variable "JETTY_AVAILABLE_PROCESSORS" or if not set then from Runtime.availableProcessors().
      static void setAvailableProcessors​(int processors)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • AVAILABLE_PROCESSORS

        public static final java.lang.String AVAILABLE_PROCESSORS
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProcessorUtils

        public ProcessorUtils()
        Deprecated.
    • Method Detail

      • availableProcessors

        public static int availableProcessors()
        Deprecated.
        Returns the number of available processors, from System Property "JETTY_AVAILABLE_PROCESSORS", or if not set then from environment variable "JETTY_AVAILABLE_PROCESSORS" or if not set then from Runtime.availableProcessors().
        Returns:
        the number of processors
      • setAvailableProcessors

        public static void setAvailableProcessors​(int processors)
        Deprecated.