Package mindsdb.services
Class Server
java.lang.Object
mindsdb.models.Project
mindsdb.services.Server
The Server class extends the Project class and provides various services such as managing databases,
ML engines, ML handlers, data handlers, agents, and skills. It also provides methods to interact with
these services.
-
Field Summary
Modifier and TypeFieldDescriptionfinal Agents
The Agents service for managing agents.final Databases
The Databases service for managing databases.final DataHandlers
The DataHandlers service for managing data handlers.final MLEngines
The MLEngines service for managing machine learning engines.final MLHandlers
The MLHandlers service for managing machine learning handlers.final Projects
The Projects service for managing projects.final Skills
The Skills service for managing skills. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a databaseCreate a databasecreateMLEngine
(String name, String handlerName) Create an ML enginecreateMLEngine
(String name, String handlerName, kong.unirest.core.json.JSONObject connectionData) Create an ML enginecreateMLEngine
(String name, Handler handler) Create an ML enginecreateMLEngine
(String name, Handler handler, kong.unirest.core.json.JSONObject connectionData) Create an ML enginecreateProject
(String name) Create a projectCreate a skillvoid
dropDatabase
(String name) Drop a databasevoid
dropMLEngine
(String name) Drop an ML enginevoid
dropProject
(String name) Drop a projectvoid
Drop a skillgetDatabase
(String name) Get a database by namegetDataHandler
(String name) Get a data handler by namegetMLEngine
(String name) Get an ML engine by namegetMLHandler
(String name) Get an ML handler by namegetProject
(String name) Get A projectGet a skill by nameList all databasesList all data handlersList all ML enginesList all ML handlersList all projectsList all skillscom.google.gson.JsonObject
status()
Get the status of the servertoString()
updateSkill
(String name, Skill updateSkill) Update a skillMethods inherited from class mindsdb.models.Project
createJob, createJob, createJob, createJob, createJob, createJob, createJob, createJob, createJob, createView, createView, dropModelVersion, dropView, getJob, getKnowledgeBase, getModel, getModelWithVersion, getName, getView, listJobs, listKnowledgeBases, listModels, listModelsWithVersion, listViews, query
-
Field Details
-
databases
The Databases service for managing databases. -
mlEngines
The MLEngines service for managing machine learning engines. -
mlHandlers
The MLHandlers service for managing machine learning handlers. -
dataHandlers
The DataHandlers service for managing data handlers. -
agents
The Agents service for managing agents. -
skills
The Skills service for managing skills. -
projects
The Projects service for managing projects.
-
-
Constructor Details
-
Server
Constructs a new Server instance with the specified RestAPI.- Parameters:
api
- The RestAPI instance to be used by the server.
-
-
Method Details
-
status
public com.google.gson.JsonObject status()Get the status of the server- Returns:
- JsonObject with the server status
-
toString
-
getProject
Get A project- Parameters:
name
- Name of the project- Returns:
- Project
-
listProjects
List all projects- Returns:
- List of projects
-
createProject
Create a project- Parameters:
name
- Name of the project- Returns:
- Project
-
dropProject
Drop a project- Parameters:
name
- Name of the project
-
listMLEngines
List all ML engines- Returns:
- List of ML engines
-
getMLEngine
Get an ML engine by name- Parameters:
name
- Name of the ML engine- Returns:
- MLEngine
-
createMLEngine
public MLEngine createMLEngine(String name, Handler handler, kong.unirest.core.json.JSONObject connectionData) Create an ML engine- Parameters:
name
- Name of the ML enginehandler
- Handler objectconnectionData
- Connection data- Returns:
- MLEngine
-
createMLEngine
public MLEngine createMLEngine(String name, String handlerName, kong.unirest.core.json.JSONObject connectionData) Create an ML engine- Parameters:
name
- Name of the ML enginehandlerName
- Name of the handlerconnectionData
- Connection data- Returns:
- MLEngine
-
createMLEngine
Create an ML engine- Parameters:
name
- Name of the ML enginehandler
- Handler object- Returns:
- MLEngine
-
createMLEngine
Create an ML engine- Parameters:
name
- Name of the ML enginehandlerName
- Name of the handler- Returns:
- MLEngine
-
dropMLEngine
Drop an ML engine- Parameters:
name
- Name of the ML engine
-
listMLHandlers
List all ML handlers- Returns:
- List of ML handlers
-
getMLHandler
Get an ML handler by name- Parameters:
name
- Name of the ML handler- Returns:
- Handler
-
listDataHandlers
List all data handlers- Returns:
- List of data handlers
-
getDataHandler
Get a data handler by name- Parameters:
name
- Name of the data handler- Returns:
- Handler
-
listDatabases
List all databases- Returns:
- List of databases
-
getDatabase
Get a database by name- Parameters:
name
- Name of the database- Returns:
- Database
-
createDatabase
Create a database- Parameters:
name
- Name of the databaseengine
- Engine objectconnectionArgs
- Connection arguments- Returns:
- Database
-
createDatabase
Create a database- Parameters:
name
- Name of the databaseengine
- Engine objectconnectionArgs
- Connection arguments- Returns:
- Database
-
dropDatabase
Drop a database- Parameters:
name
- Name of the database
-
listSkills
List all skills- Returns:
- List of skills
-
getSkill
Get a skill by name- Parameters:
name
- Name of the skill- Returns:
- Skill
-
createSkill
Create a skill- Parameters:
name
- Name of the skilltype
- Type of the skillparams
- Parameters of the skill- Returns:
- Skill
-
updateSkill
Update a skill- Parameters:
name
- Name of the skillupdateSkill
- Skill object- Returns:
- Skill
-
dropSkill
Drop a skill- Parameters:
name
- Name of the skill
-