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 Summary
Modifier and TypeMethodDescriptionadvanced()inferenceAddress(String inferenceAddress) The address of the inference API endpoint.inferenceKey(String inferenceKey) The token authorization key for accessing the inference API.inferencePort(int inferencePort) The port of the inference API endpoint.inferencePort(String inferencePort) The port of the inference API endpoint.listLimit(int listLimit) The maximum number of items to return for the list operation.The maximum number of items to return for the list operation.listNextPageToken(String listNextPageToken) The token to retrieve the next set of results for the list operation.managementAddress(String managementAddress) The address of the management API endpoint.managementKey(String managementKey) The token authorization key for accessing the management API.managementPort(int managementPort) The port of the management API endpoint.managementPort(String managementPort) The port of the management API endpoint.metricsAddress(String metricsAddress) The address of the metrics API endpoint.metricsName(String metricsName) Names of metrics to filter.metricsPort(int metricsPort) The port of the metrics API endpoint.metricsPort(String metricsPort) The port of the metrics API endpoint.The name of model.modelVersion(String modelVersion) The version of model.registerOptions(String registerOptions) Additional options for the register operation.registerOptions(org.apache.camel.component.torchserve.client.model.RegisterOptions registerOptions) Additional options for the register operation.scaleWorkerOptions(String scaleWorkerOptions) Additional options for the scale-worker operation.scaleWorkerOptions(org.apache.camel.component.torchserve.client.model.ScaleWorkerOptions scaleWorkerOptions) Additional options for the scale-worker operation.unregisterOptions(String unregisterOptions) Additional options for the unregister operation.unregisterOptions(org.apache.camel.component.torchserve.client.model.UnregisterOptions unregisterOptions) Additional options for the unregister operation.Model archive download url, support local file or HTTP(s) protocol.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
modelName
The name of model. The option is a:java.lang.Stringtype. Group: common- Parameters:
modelName- the value to set- Returns:
- the dsl builder
-
modelVersion
default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder modelVersion(String modelVersion) The version of model. The option is a:java.lang.Stringtype. 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.Stringtype. Group: inference- Parameters:
inferenceAddress- the value to set- Returns:
- the dsl builder
-
inferencePort
The port of the inference API endpoint. The option is a:inttype. Default: 8080 Group: inference- Parameters:
inferencePort- the value to set- Returns:
- the dsl builder
-
inferencePort
default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder inferencePort(String inferencePort) The port of the inference API endpoint. The option will be converted to ainttype. 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:inttype. 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 ainttype. 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.Stringtype. 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.Stringtype. 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:inttype. 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 ainttype. 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.RegisterOptionstype. 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 aorg.apache.camel.component.torchserve.client.model.RegisterOptionstype. 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.ScaleWorkerOptionstype. 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 aorg.apache.camel.component.torchserve.client.model.ScaleWorkerOptionstype. 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.UnregisterOptionstype. 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 aorg.apache.camel.component.torchserve.client.model.UnregisterOptionstype. 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.Stringtype. 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.Stringtype. Group: metrics- Parameters:
metricsAddress- the value to set- Returns:
- the dsl builder
-
metricsName
Names of metrics to filter. The option is a:java.lang.Stringtype. Group: metrics- Parameters:
metricsName- the value to set- Returns:
- the dsl builder
-
metricsPort
The port of the metrics API endpoint. The option is a:inttype. 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 ainttype. Default: 8082 Group: metrics- Parameters:
metricsPort- the value to set- Returns:
- the dsl builder
-
inferenceKey
default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder inferenceKey(String inferenceKey) The token authorization key for accessing the inference API. The option is a:java.lang.Stringtype. Group: security- Parameters:
inferenceKey- the value to set- Returns:
- the dsl builder
-
managementKey
default TorchServeEndpointBuilderFactory.TorchServeEndpointBuilder managementKey(String managementKey) The token authorization key for accessing the management API. The option is a:java.lang.Stringtype. Group: security- Parameters:
managementKey- the value to set- Returns:
- the dsl builder
-