Enum SandboxLimits.Limit

java.lang.Object
java.lang.Enum<SandboxLimits.Limit>
org.codehaus.commons.compiler.sandbox.SandboxLimits.Limit
All Implemented Interfaces:
Serializable, Comparable<SandboxLimits.Limit>
Enclosing class:
SandboxLimits

public static enum SandboxLimits.Limit extends Enum<SandboxLimits.Limit>
The kinds of resource limits.
  • Enum Constant Details

    • TIME

      public static final SandboxLimits.Limit TIME
      The execution took longer than the timeout.
    • TICKS

      public static final SandboxLimits.Limit TICKS
      The code executed more loop iterations and method invocations than allowed.
    • MEMORY

      public static final SandboxLimits.Limit MEMORY
      The executing thread allocated more memory than allowed, or code attempted to create an array that would exceed the remaining memory budget.
  • Method Details

    • values

      public static SandboxLimits.Limit[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SandboxLimits.Limit valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null