public class Endpoint
extends java.lang.Object
| Constructor and Description |
|---|
Endpoint()
Constructs an
Endpoint instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ModelInfo modelInfo)
Adds a model to the entpoint.
|
ModelInfo |
get(java.lang.String version)
Returns the
ModelInfo for the specified version. |
java.util.List<ModelInfo> |
getModels()
Returns the models associated with the endpoint.
|
ModelInfo |
next()
Returns the next version of model to serve the inference request.
|
ModelInfo |
remove(java.lang.String version)
Removes a model version from the
Endpoint. |
public boolean add(ModelInfo modelInfo)
modelInfo - the model to be addedpublic java.util.List<ModelInfo> getModels()
public ModelInfo remove(java.lang.String version)
Endpoint.version - the model versionpublic ModelInfo get(java.lang.String version)
ModelInfo for the specified version.version - the version of the model to retrieveModelInfo for the specified versionpublic ModelInfo next()