Class DefaultManagement
java.lang.Object
org.apache.camel.component.torchserve.client.impl.DefaultManagement
- All Implemented Interfaces:
Management
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet openapi description.describeModel(String modelName) Provides detailed information about the default version of a model.describeModel(String modelName, String modelVersion) Provides detailed information about the specified version of a model.listModels(Integer limit, String nextPageToken) List registered models in TorchServe.registerModel(String url, RegisterOptions options) Register a new model in TorchServe.voidsetAuthToken(String token) setAutoScale(String modelName, String modelVersion, ScaleWorkerOptions options) Configure number of workers for a specified version of a model.setAutoScale(String modelName, ScaleWorkerOptions options) Configure number of workers for a default version of a model.setDefault(String modelName, String modelVersion) Set default version of a model.Not supported yet.unregisterModel(String modelName, String modelVersion, UnregisterOptions options) Unregister the specified version of a model from TorchServe.unregisterModel(String modelName, UnregisterOptions options) Unregister the default version of a model from TorchServe if it is the only version available.
-
Constructor Details
-
DefaultManagement
public DefaultManagement() -
DefaultManagement
public DefaultManagement(int port) -
DefaultManagement
-
-
Method Details
-
setAuthToken
-
registerModel
Description copied from interface:ManagementRegister a new model in TorchServe.- Specified by:
registerModelin interfaceManagement- Throws:
ApiException
-
setAutoScale
Description copied from interface:ManagementConfigure number of workers for a default version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.- Specified by:
setAutoScalein interfaceManagement- Throws:
ApiException
-
setAutoScale
public Response setAutoScale(String modelName, String modelVersion, ScaleWorkerOptions options) throws ApiException Description copied from interface:ManagementConfigure number of workers for a specified version of a model. This is an asynchronous call by default. Caller need to call describeModel to check if the model workers has been changed.- Specified by:
setAutoScalein interfaceManagement- Throws:
ApiException
-
describeModel
Description copied from interface:ManagementProvides detailed information about the default version of a model.- Specified by:
describeModelin interfaceManagement- Throws:
ApiException
-
describeModel
Description copied from interface:ManagementProvides detailed information about the specified version of a model. If "all" is specified as version, returns the details about all the versions of the model.- Specified by:
describeModelin interfaceManagement- Throws:
ApiException
-
unregisterModel
Description copied from interface:ManagementUnregister the default version of a model from TorchServe if it is the only version available. This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered.- Specified by:
unregisterModelin interfaceManagement- Throws:
ApiException
-
unregisterModel
public Response unregisterModel(String modelName, String modelVersion, UnregisterOptions options) throws ApiException Description copied from interface:ManagementUnregister the specified version of a model from TorchServe. This is an asynchronous call by default. Caller can call listModels to confirm model is unregistered.- Specified by:
unregisterModelin interfaceManagement- Throws:
ApiException
-
listModels
Description copied from interface:ManagementList registered models in TorchServe.- Specified by:
listModelsin interfaceManagement- Throws:
ApiException
-
setDefault
Description copied from interface:ManagementSet default version of a model.- Specified by:
setDefaultin interfaceManagement- Throws:
ApiException
-
apiDescription
Description copied from interface:ManagementGet openapi description.- Specified by:
apiDescriptionin interfaceManagement- Throws:
ApiException
-
token
Description copied from interface:ManagementNot supported yet.- Specified by:
tokenin interfaceManagement- Throws:
ApiException
-