Package mindsdb.services
Class Handlers
java.lang.Object
mindsdb.services.Handlers
- Direct Known Subclasses:
DataHandlers
,MLHandlers
The
Handlers
class provides methods to interact with handlers of a specific type.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
api
The API instance used to interact with the backend. -
type
The type of handlers this instance manages.
-
-
Constructor Details
-
Handlers
Constructs a newHandlers
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
Lists all handlers of the specified type.- Returns:
- A list of handlers.
-
get
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.
-