Interface TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder

All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
Enclosing interface:
TorchServeEndpointBuilderFactory

public static interface TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the TorchServe component.
  • Method Details

    • advanced

    • modelName

      The name of model. The option is a: java.lang.String type. Group: common
      Parameters:
      modelName - the value to set
      Returns:
      the dsl builder
    • modelVersion

      The version of model. The option is a: java.lang.String type. Group: common
      Parameters:
      modelVersion - the value to set
      Returns:
      the dsl builder
    • inferenceAddress

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder inferenceAddress(String inferenceAddress)
      The address of the inference API endpoint. The option is a: java.lang.String type. Group: inference
      Parameters:
      inferenceAddress - the value to set
      Returns:
      the dsl builder
    • inferencePort

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder inferencePort(int inferencePort)
      The port of the inference API endpoint. The option is a: int type. Default: 8080 Group: inference
      Parameters:
      inferencePort - the value to set
      Returns:
      the dsl builder
    • inferencePort

      The port of the inference API endpoint. The option will be converted to a int type. Default: 8080 Group: inference
      Parameters:
      inferencePort - the value to set
      Returns:
      the dsl builder
    • 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. The option is a: int type. Default: 100 Group: management
      Parameters:
      listLimit - the value to set
      Returns:
      the dsl builder
    • 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. The option will be converted to a int type. Default: 100 Group: management
      Parameters:
      listLimit - the value to set
      Returns:
      the dsl builder
    • listNextPageToken

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder listNextPageToken(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. The option is a: java.lang.String type. Group: management
      Parameters:
      listNextPageToken - the value to set
      Returns:
      the dsl builder
    • managementAddress

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder managementAddress(String managementAddress)
      The address of the management API endpoint. The option is a: java.lang.String type. Group: management
      Parameters:
      managementAddress - the value to set
      Returns:
      the dsl builder
    • managementPort

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder managementPort(int managementPort)
      The port of the management API endpoint. The option is a: int type. Default: 8081 Group: management
      Parameters:
      managementPort - the value to set
      Returns:
      the dsl builder
    • managementPort

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder managementPort(String managementPort)
      The port of the management API endpoint. The option will be converted to a int type. Default: 8081 Group: management
      Parameters:
      managementPort - the value to set
      Returns:
      the dsl builder
    • registerOptions

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder registerOptions(org.apache.camel.component.torchserve.client.model.RegisterOptions registerOptions)
      Additional options for the register operation. The option is a: org.apache.camel.component.torchserve.client.model.RegisterOptions type. Group: management
      Parameters:
      registerOptions - the value to set
      Returns:
      the dsl builder
    • registerOptions

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder registerOptions(String registerOptions)
      Additional options for the register operation. The option will be converted to a org.apache.camel.component.torchserve.client.model.RegisterOptions type. Group: management
      Parameters:
      registerOptions - the value to set
      Returns:
      the dsl builder
    • scaleWorkerOptions

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder scaleWorkerOptions(org.apache.camel.component.torchserve.client.model.ScaleWorkerOptions scaleWorkerOptions)
      Additional options for the scale-worker operation. The option is a: org.apache.camel.component.torchserve.client.model.ScaleWorkerOptions type. Group: management
      Parameters:
      scaleWorkerOptions - the value to set
      Returns:
      the dsl builder
    • scaleWorkerOptions

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder scaleWorkerOptions(String scaleWorkerOptions)
      Additional options for the scale-worker operation. The option will be converted to a org.apache.camel.component.torchserve.client.model.ScaleWorkerOptions type. Group: management
      Parameters:
      scaleWorkerOptions - the value to set
      Returns:
      the dsl builder
    • unregisterOptions

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder unregisterOptions(org.apache.camel.component.torchserve.client.model.UnregisterOptions unregisterOptions)
      Additional options for the unregister operation. The option is a: org.apache.camel.component.torchserve.client.model.UnregisterOptions type. Group: management
      Parameters:
      unregisterOptions - the value to set
      Returns:
      the dsl builder
    • unregisterOptions

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder unregisterOptions(String unregisterOptions)
      Additional options for the unregister operation. The option will be converted to a org.apache.camel.component.torchserve.client.model.UnregisterOptions type. Group: management
      Parameters:
      unregisterOptions - the value to set
      Returns:
      the dsl builder
    • url

      Model archive download url, support local file or HTTP(s) protocol. For S3, consider using pre-signed url. The option is a: java.lang.String type. Group: management
      Parameters:
      url - the value to set
      Returns:
      the dsl builder
    • metricsAddress

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder metricsAddress(String metricsAddress)
      The address of the metrics API endpoint. The option is a: java.lang.String type. Group: metrics
      Parameters:
      metricsAddress - the value to set
      Returns:
      the dsl builder
    • metricsName

      Names of metrics to filter. The option is a: java.lang.String type. Group: metrics
      Parameters:
      metricsName - the value to set
      Returns:
      the dsl builder
    • metricsPort

      default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder metricsPort(int metricsPort)
      The port of the metrics API endpoint. The option is a: int type. Default: 8082 Group: metrics
      Parameters:
      metricsPort - the value to set
      Returns:
      the dsl builder
    • metricsPort

      The port of the metrics API endpoint. The option will be converted to a int type. Default: 8082 Group: metrics
      Parameters:
      metricsPort - the value to set
      Returns:
      the dsl builder
    • inferenceKey

      The token authorization key for accessing the inference API. The option is a: java.lang.String type. Group: security
      Parameters:
      inferenceKey - the value to set
      Returns:
      the dsl builder
    • managementKey

      The token authorization key for accessing the management API. The option is a: java.lang.String type. Group: security
      Parameters:
      managementKey - the value to set
      Returns:
      the dsl builder