Interface TorchserveComponentBuilderFactory.TorchserveComponentBuilder
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.torchserve.TorchServeComponent>
- All Known Implementing Classes:
TorchserveComponentBuilderFactory.TorchserveComponentBuilderImpl
- Enclosing interface:
TorchserveComponentBuilderFactory
public static interface TorchserveComponentBuilderFactory.TorchserveComponentBuilder
extends ComponentBuilder<org.apache.camel.component.torchserve.TorchServeComponent>
Builder for the TorchServe component.
-
Method Summary
Modifier and TypeMethodDescriptionautowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled.configuration(org.apache.camel.component.torchserve.TorchServeConfiguration configuration) The configuration.healthCheckConsumerEnabled(boolean healthCheckConsumerEnabled) Used for enabling or disabling all consumer based health checks from this component.healthCheckProducerEnabled(boolean healthCheckProducerEnabled) Used for enabling or disabling all producer based health checks from this component.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.lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).listLimit(int listLimit) 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.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.The name of model.modelVersion(String modelVersion) The version of model.registerOptions(org.apache.camel.component.torchserve.client.model.RegisterOptions registerOptions) Additional options for the register operation.scaleWorkerOptions(org.apache.camel.component.torchserve.client.model.ScaleWorkerOptions scaleWorkerOptions) Additional options for the scale-worker 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.component.ComponentBuilder
build, build, doSetProperty, register
-
Method Details
-
configuration
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder configuration(org.apache.camel.component.torchserve.TorchServeConfiguration configuration) The configuration. The option is a: <code>org.apache.camel.component.torchserve.TorchServeConfiguration</code> type. Group: producer- Parameters:
configuration- the value to set- Returns:
- the dsl builder
-
modelName
The name of model. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
modelName- the value to set- Returns:
- the dsl builder
-
modelVersion
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder modelVersion(String modelVersion) The version of model. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
modelVersion- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
autowiredEnabled- the value to set- Returns:
- the dsl builder
-
healthCheckConsumerEnabled
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder healthCheckConsumerEnabled(boolean healthCheckConsumerEnabled) Used for enabling or disabling all consumer based health checks from this component. The option is a: <code>boolean</code> type. Default: true Group: health- Parameters:
healthCheckConsumerEnabled- the value to set- Returns:
- the dsl builder
-
healthCheckProducerEnabled
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder healthCheckProducerEnabled(boolean healthCheckProducerEnabled) Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true. The option is a: <code>boolean</code> type. Default: true Group: health- Parameters:
healthCheckProducerEnabled- the value to set- Returns:
- the dsl builder
-
inferenceAddress
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder inferenceAddress(String inferenceAddress) The address of the inference API endpoint. The option is a: <code>java.lang.String</code> type. Group: inference- Parameters:
inferenceAddress- the value to set- Returns:
- the dsl builder
-
inferencePort
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder inferencePort(int inferencePort) The port of the inference API endpoint. The option is a: <code>int</code> 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: <code>int</code> type. Default: 100 Group: management- Parameters:
listLimit- the value to set- Returns:
- the dsl builder
-
listNextPageToken
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder 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: <code>java.lang.String</code> type. Group: management- Parameters:
listNextPageToken- the value to set- Returns:
- the dsl builder
-
managementAddress
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder managementAddress(String managementAddress) The address of the management API endpoint. The option is a: <code>java.lang.String</code> type. Group: management- Parameters:
managementAddress- the value to set- Returns:
- the dsl builder
-
managementPort
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder managementPort(int managementPort) The port of the management API endpoint. The option is a: <code>int</code> type. Default: 8081 Group: management- Parameters:
managementPort- the value to set- Returns:
- the dsl builder
-
registerOptions
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder registerOptions(org.apache.camel.component.torchserve.client.model.RegisterOptions registerOptions) Additional options for the register operation. The option is a: <code>org.apache.camel.component.torchserve.client.model.RegisterOptions</code> type. Group: management- Parameters:
registerOptions- the value to set- Returns:
- the dsl builder
-
scaleWorkerOptions
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder scaleWorkerOptions(org.apache.camel.component.torchserve.client.model.ScaleWorkerOptions scaleWorkerOptions) Additional options for the scale-worker operation. The option is a: <code>org.apache.camel.component.torchserve.client.model.ScaleWorkerOptions</code> type. Group: management- Parameters:
scaleWorkerOptions- the value to set- Returns:
- the dsl builder
-
unregisterOptions
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder unregisterOptions(org.apache.camel.component.torchserve.client.model.UnregisterOptions unregisterOptions) Additional options for the unregister operation. The option is a: <code>org.apache.camel.component.torchserve.client.model.UnregisterOptions</code> 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: <code>java.lang.String</code> type. Group: management- Parameters:
url- the value to set- Returns:
- the dsl builder
-
metricsAddress
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder metricsAddress(String metricsAddress) The address of the metrics API endpoint. The option is a: <code>java.lang.String</code> type. Group: metrics- Parameters:
metricsAddress- the value to set- Returns:
- the dsl builder
-
metricsName
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder metricsName(String metricsName) Names of metrics to filter. The option is a: <code>java.lang.String</code> type. Group: metrics- Parameters:
metricsName- the value to set- Returns:
- the dsl builder
-
metricsPort
The port of the metrics API endpoint. The option is a: <code>int</code> type. Default: 8082 Group: metrics- Parameters:
metricsPort- the value to set- Returns:
- the dsl builder
-
inferenceKey
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder inferenceKey(String inferenceKey) The token authorization key for accessing the inference API. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
inferenceKey- the value to set- Returns:
- the dsl builder
-
managementKey
default TorchserveComponentBuilderFactory.TorchserveComponentBuilder managementKey(String managementKey) The token authorization key for accessing the management API. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
managementKey- the value to set- Returns:
- the dsl builder
-