Class TorchServeConfiguration

java.lang.Object
org.apache.camel.component.torchserve.TorchServeConfiguration
All Implemented Interfaces:
Cloneable

@UriParams @Configurer public class TorchServeConfiguration extends Object implements Cloneable
  • Constructor Details

    • TorchServeConfiguration

      public TorchServeConfiguration()
  • Method Details

    • getInferenceKey

      public String getInferenceKey()
    • setInferenceKey

      public void setInferenceKey(String inferenceKey)
      The token authorization key for accessing the inference API.
    • getInferenceAddress

      public String getInferenceAddress()
    • setInferenceAddress

      public void setInferenceAddress(String inferenceAddress)
      The address of the inference API endpoint.
    • getInferencePort

      public int getInferencePort()
    • setInferencePort

      public void setInferencePort(int inferencePort)
      The port of the inference API endpoint.
    • getManagementKey

      public String getManagementKey()
    • setManagementKey

      public void setManagementKey(String managementKey)
      The token authorization key for accessing the management API.
    • getManagementAddress

      public String getManagementAddress()
    • setManagementAddress

      public void setManagementAddress(String managementAddress)
      The address of the management API endpoint.
    • getManagementPort

      public int getManagementPort()
    • setManagementPort

      public void setManagementPort(int managementPort)
      The port of the management API endpoint.
    • getMetricsAddress

      public String getMetricsAddress()
    • setMetricsAddress

      public void setMetricsAddress(String metricsAddress)
      The address of the metrics API endpoint.
    • getMetricsPort

      public int getMetricsPort()
    • setMetricsPort

      public void setMetricsPort(int metricsPort)
      The port of the metrics API endpoint.
    • getModelName

      public String getModelName()
    • setModelName

      public void setModelName(String modelName)
      The name of model.
    • getModelVersion

      public String getModelVersion()
    • setModelVersion

      public void setModelVersion(String modelVersion)
      The version of model.
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
      Model archive download url, support local file or HTTP(s) protocol. For S3, consider using pre-signed url.
    • getRegisterOptions

      public RegisterOptions getRegisterOptions()
    • setRegisterOptions

      public void setRegisterOptions(RegisterOptions registerOptions)
      Additional options for the register operation.
    • getScaleWorkerOptions

      public ScaleWorkerOptions getScaleWorkerOptions()
    • setScaleWorkerOptions

      public void setScaleWorkerOptions(ScaleWorkerOptions scaleWorkerOptions)
      Additional options for the scale-worker operation.
    • getUnregisterOptions

      public UnregisterOptions getUnregisterOptions()
    • setUnregisterOptions

      public void setUnregisterOptions(UnregisterOptions unregisterOptions)
      Additional options for the unregister operation.
    • getListLimit

      public int getListLimit()
    • setListLimit

      public void setListLimit(int listLimit)
      The maximum number of items to return for the list operation. When this value is present, TorchServe does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.
    • getListNextPageToken

      public String getListNextPageToken()
    • setListNextPageToken

      public void setListNextPageToken(String listNextPageToken)
      The token to retrieve the next set of results for the list operation. TorchServe provides the token when the response from a previous call has more results than the maximum page size.
    • getMetricsName

      public String getMetricsName()
    • setMetricsName

      public void setMetricsName(String metricsName)
      Names of metrics to filter.
    • copy

      public TorchServeConfiguration copy()