Package com.alibaba.nacos.sys.env
Enum Class DeploymentType
- All Implemented Interfaces:
Serializable,Comparable<DeploymentType>,Constable
Nacos deployment type enum.
- Author:
- xiweng.yy
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly console deployment type, means only the nacos console is deployed in the process.Unknown deployment type.Default deployment type, means the nacos server and console are deployed in one process.Only server deployment type, means only the nacos server is deployed in the process.Nacos Server and Mcp will be deployed in the process. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentTypestatic DeploymentTypeReturns the enum constant of this class with the specified name.static DeploymentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MERGED
Default deployment type, means the nacos server and console are deployed in one process. -
SERVER
Only server deployment type, means only the nacos server is deployed in the process. -
CONSOLE
Only console deployment type, means only the nacos console is deployed in the process. -
SERVER_WITH_MCP
Nacos Server and Mcp will be deployed in the process. -
ILLEGAL
Unknown deployment type.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getTypeName
-
getType
-