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.
| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the number of processorsReturns 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 |
| pack-priv static int | |
| public static void |
| __availableProcessors | back to summary |
|---|---|
| private static int __availableProcessors | |
| AVAILABLE_PROCESSORS | back to summary |
|---|---|
| public static final String AVAILABLE_PROCESSORS | |
| ProcessorUtils | back to summary |
|---|---|
| public ProcessorUtils() | |
| availableProcessors | back to summary |
|---|---|
| public static int availableProcessors() 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
| |
| init | back to summary |
|---|---|
| pack-priv static int init() | |
| setAvailableProcessors | back to summary |
|---|---|
| public static void setAvailableProcessors(int processors) | |