Enum Class DeploymentType

java.lang.Object
java.lang.Enum<DeploymentType>
com.alibaba.nacos.sys.env.DeploymentType
All Implemented Interfaces:
Serializable, Comparable<DeploymentType>, Constable

public enum DeploymentType extends Enum<DeploymentType>
Nacos deployment type enum.
Author:
xiweng.yy
  • Enum Constant Details

    • MERGED

      public static final DeploymentType MERGED
      Default deployment type, means the nacos server and console are deployed in one process.
    • SERVER

      public static final DeploymentType SERVER
      Only server deployment type, means only the nacos server is deployed in the process.
    • CONSOLE

      public static final DeploymentType CONSOLE
      Only console deployment type, means only the nacos console is deployed in the process.
    • SERVER_WITH_MCP

      public static final DeploymentType SERVER_WITH_MCP
      Nacos Server and Mcp will be deployed in the process.
    • ILLEGAL

      public static final DeploymentType ILLEGAL
      Unknown deployment type.
  • Method Details

    • values

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

      public static DeploymentType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getTypeName

      public String getTypeName()
    • getType

      public static DeploymentType getType(String type)