public enum ManagedMemoryUtils extends Enum<ManagedMemoryUtils>
Modifier and Type | Method and Description |
---|---|
static double |
convertToFractionOfSlot(ManagedMemoryUseCase useCase,
double fractionOfUseCase,
Set<ManagedMemoryUseCase> allUseCases,
Configuration config,
Optional<Boolean> stateBackendFromApplicationUsesManagedMemory,
ClassLoader classLoader) |
static double |
getFractionRoundedDown(long dividend,
long divisor) |
static void |
validateUseCaseWeightsNotConflict(Map<ManagedMemoryUseCase,Integer> weights1,
Map<ManagedMemoryUseCase,Integer> weights2) |
static ManagedMemoryUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ManagedMemoryUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ManagedMemoryUtils[] values()
for (ManagedMemoryUtils c : ManagedMemoryUtils.values()) System.out.println(c);
public static ManagedMemoryUtils valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static double convertToFractionOfSlot(ManagedMemoryUseCase useCase, double fractionOfUseCase, Set<ManagedMemoryUseCase> allUseCases, Configuration config, Optional<Boolean> stateBackendFromApplicationUsesManagedMemory, ClassLoader classLoader)
public static double getFractionRoundedDown(long dividend, long divisor)
public static void validateUseCaseWeightsNotConflict(Map<ManagedMemoryUseCase,Integer> weights1, Map<ManagedMemoryUseCase,Integer> weights2)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.