Enum Class McpServerStatusEnum
- All Implemented Interfaces:
Serializable
,Comparable<McpServerStatusEnum>
,Constable
MCP Server status enumeration
Represents the current operational status of MCP servers
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionServer is currently active and operationalServer is currently connecting/initializingServer is disabled by configurationServer is disconnectingServer is in error stateServer is inactive or not runningServer is in maintenance modeServer connection is in timeout stateServer status is unknown -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
Check if server can be startedboolean
canStop()
Check if server can be stoppedstatic McpServerStatusEnum
fromString
(String status) Get enum from string value (case insensitive)boolean
Check if status indicates server has issuesboolean
Check if status indicates server is operationalstatic McpServerStatusEnum
Returns the enum constant of this class with the specified name.static McpServerStatusEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
Server is currently active and operational -
INACTIVE
Server is inactive or not running -
ERROR
Server is in error state -
CONNECTING
Server is currently connecting/initializing -
DISCONNECTING
Server is disconnecting -
TIMEOUT
Server connection is in timeout state -
MAINTENANCE
Server is in maintenance mode -
DISABLED
Server is disabled by configuration -
UNKNOWN
Server status is unknown
-
-
Field Details
-
description
-
-
Constructor Details
-
McpServerStatusEnum
-
-
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
-
getDescription
-
fromString
Get enum from string value (case insensitive) -
isOperational
public boolean isOperational()Check if status indicates server is operational -
hasIssues
public boolean hasIssues()Check if status indicates server has issues -
canStart
public boolean canStart()Check if server can be started -
canStop
public boolean canStop()Check if server can be stopped
-