Module org.elasticsearch.server
Package org.elasticsearch.inference
Class ModelRegistry.NoopModelRegistry
java.lang.Object
org.elasticsearch.inference.ModelRegistry.NoopModelRegistry
- All Implemented Interfaces:
ModelRegistry
- Enclosing interface:
- ModelRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.inference.ModelRegistry
ModelRegistry.NoopModelRegistry, ModelRegistry.UnparsedModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteModel
(String modelId, ActionListener<Boolean> listener) void
getAllModels
(ActionListener<List<ModelRegistry.UnparsedModel>> listener) Get all models.void
getModel
(String modelId, ActionListener<ModelRegistry.UnparsedModel> listener) Get a model.void
getModelsByTaskType
(TaskType taskType, ActionListener<List<ModelRegistry.UnparsedModel>> listener) Get all models of a particular task type.void
getModelWithSecrets
(String inferenceEntityId, ActionListener<ModelRegistry.UnparsedModel> listener) Get a model with its secret settingsvoid
storeModel
(Model model, ActionListener<Boolean> listener)
-
Constructor Details
-
NoopModelRegistry
public NoopModelRegistry()
-
-
Method Details
-
getModel
Description copied from interface:ModelRegistry
Get a model. Secret settings are not included- Specified by:
getModel
in interfaceModelRegistry
- Parameters:
modelId
- Model to getlistener
- Model listener
-
getModelsByTaskType
public void getModelsByTaskType(TaskType taskType, ActionListener<List<ModelRegistry.UnparsedModel>> listener) Description copied from interface:ModelRegistry
Get all models of a particular task type. Secret settings are not included- Specified by:
getModelsByTaskType
in interfaceModelRegistry
- Parameters:
taskType
- The task typelistener
- Models listener
-
getAllModels
Description copied from interface:ModelRegistry
Get all models. Secret settings are not included- Specified by:
getAllModels
in interfaceModelRegistry
- Parameters:
listener
- Models listener
-
storeModel
- Specified by:
storeModel
in interfaceModelRegistry
-
deleteModel
- Specified by:
deleteModel
in interfaceModelRegistry
-
getModelWithSecrets
public void getModelWithSecrets(String inferenceEntityId, ActionListener<ModelRegistry.UnparsedModel> listener) Description copied from interface:ModelRegistry
Get a model with its secret settings- Specified by:
getModelWithSecrets
in interfaceModelRegistry
- Parameters:
inferenceEntityId
- Model to getlistener
- Model listener
-