Class Handlers

java.lang.Object
mindsdb.services.Handlers
Direct Known Subclasses:
DataHandlers, MLHandlers

public class Handlers extends Object
The Handlers class provides methods to interact with handlers of a specific type.
  • Field Details

    • api

      protected final RestAPI api
      The API instance used to interact with the backend.
    • type

      protected final String type
      The type of handlers this instance manages.
  • Constructor Details

    • Handlers

      public Handlers(RestAPI api, String type)
      Constructs a new Handlers instance with the provided API and handler type.
      Parameters:
      api - The API instance used to interact with the backend.
      type - The type of handlers this instance manages.
  • Method Details

    • list

      public List<Handler> list()
      Lists all handlers of the specified type.
      Returns:
      A list of handlers.
    • get

      public Handler get(String name)
      Gets a handler by its name.
      Parameters:
      name - The name of the handler.
      Returns:
      The handler with the specified name.
      Throws:
      IllegalArgumentException - if the handler does not exist.