public enum ManagementPortType extends Enum<ManagementPortType>
| Enum Constant and Description |
|---|
DIFFERENT
The management port and server port are different.
|
DISABLED
The management port has been disabled.
|
SAME
The management port is the same as the server port.
|
| Modifier and Type | Method and Description |
|---|---|
static ManagementPortType |
get(org.springframework.core.env.Environment environment)
Look at the given environment to determine if the
ManagementPortType is
DISABLED, SAME or DIFFERENT. |
static ManagementPortType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ManagementPortType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ManagementPortType DISABLED
public static final ManagementPortType SAME
public static final ManagementPortType DIFFERENT
public static ManagementPortType[] values()
for (ManagementPortType c : ManagementPortType.values()) System.out.println(c);
public static ManagementPortType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ManagementPortType get(org.springframework.core.env.Environment environment)
ManagementPortType is
DISABLED, SAME or DIFFERENT.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.