Enum MasterProcessCommand

java.lang.Object
java.lang.Enum<MasterProcessCommand>
org.apache.maven.surefire.booter.MasterProcessCommand
All Implemented Interfaces:
Serializable, Comparable<MasterProcessCommand>, java.lang.constant.Constable

public enum MasterProcessCommand extends Enum<MasterProcessCommand>
Commands which are sent from plugin to the forked jvm. Support and methods related to the commands.
Since:
2.19
Author:
Tibor Digana (tibor17)
  • Enum Constant Details

  • Method Details

    • values

      public static MasterProcessCommand[] 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 MasterProcessCommand 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
    • getId

      public int getId()
    • getDataType

      public Class<?> getDataType()
    • hasDataType

      public boolean hasDataType()
    • encode

      public byte[] encode(String data)
    • encode

      public byte[] encode()
    • decode

      public static Command decode(DataInputStream is) throws IOException
      Throws:
      IOException