Enum Class McpServerStatusEnum

java.lang.Object
java.lang.Enum<McpServerStatusEnum>
com.bytedesk.ai.springai.mcp_server.McpServerStatusEnum
All Implemented Interfaces:
Serializable, Comparable<McpServerStatusEnum>, Constable

public enum McpServerStatusEnum extends Enum<McpServerStatusEnum>
MCP Server status enumeration Represents the current operational status of MCP servers
  • Enum Constant Details

  • Field Details

    • description

      private final String description
  • Constructor Details

    • McpServerStatusEnum

      private McpServerStatusEnum(String description)
  • Method Details

    • values

      public static McpServerStatusEnum[] 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 McpServerStatusEnum 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
    • getDescription

      public String getDescription()
    • fromString

      public static McpServerStatusEnum fromString(String status)
      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