package org.graalvm.compiler.hotspot;
import java.util.*;
import org.graalvm.compiler.options.*;
public class BootstrapWatchDog_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "BootstrapTimeout": {
return OptionDescriptor.create(
"BootstrapTimeout",
Double.class,
"Maximum time in minutes to spend bootstrapping (0 to disable this limit).",
BootstrapWatchDog.Options.class,
"BootstrapTimeout",
BootstrapWatchDog.Options.BootstrapTimeout);
}
case "BootstrapWatchDogCriticalRateRatio": {
return OptionDescriptor.create(
"BootstrapWatchDogCriticalRateRatio",
Double.class,
"Ratio of the maximum compilation rate below which the bootstrap compilation rate must not fall (0 or less disables monitoring).",
BootstrapWatchDog.Options.class,
"BootstrapWatchDogCriticalRateRatio",
BootstrapWatchDog.Options.BootstrapWatchDogCriticalRateRatio);
}
}
return null;
}
@Override
public Iterator<OptionDescriptor> iterator() {
return new Iterator<OptionDescriptor>() {
int i = 0;
@Override
public boolean hasNext() {
return i < 2;
}
@Override
public OptionDescriptor next() {
switch (i++) {
case 0: return get("BootstrapTimeout");
case 1: return get("BootstrapWatchDogCriticalRateRatio");
}
throw new NoSuchElementException();
}
};
}
}