blob: 942a4f6f153349a4b4813b7d4f28ab1df3fdd1e5 [file] [log] [blame]
{
"connector": {
"class": "org.apache.camel.kafkaconnector.weather.CamelWeatherSourceConnector",
"artifactId": "camel-weather-kafka-connector",
"groupId": "org.apache.camel.kafkaconnector",
"id": "camel-weather-source",
"type": "source",
"version": "0.7.2",
"description": "Poll the weather information from Open Weather Map."
},
"properties": {
"camel.source.path.name": {
"name": "camel.source.path.name",
"description": "The name value is not used.",
"priority": "HIGH",
"required": "true"
},
"camel.source.endpoint.appid": {
"name": "camel.source.endpoint.appid",
"description": "APPID ID used to authenticate the user connected to the API Server",
"priority": "HIGH",
"required": "true"
},
"camel.source.endpoint.headerName": {
"name": "camel.source.endpoint.headerName",
"description": "To store the weather result in this header instead of the message body. This is useable if you want to keep current message body as-is.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.language": {
"name": "camel.source.endpoint.language",
"description": "Language of the response. One of: [en] [ru] [it] [es] [sp] [uk] [ua] [de] [pt] [ro] [pl] [fi] [nl] [fr] [bg] [sv] [se] [zh_tw] [zh] [zh_cn] [tr] [hr] [ca]",
"defaultValue": "\"en\"",
"priority": "MEDIUM",
"required": "false",
"enum": [
"en",
"ru",
"it",
"es",
"sp",
"uk",
"ua",
"de",
"pt",
"ro",
"pl",
"fi",
"nl",
"fr",
"bg",
"sv",
"se",
"zh_tw",
"zh",
"zh_cn",
"tr",
"hr",
"ca"
]
},
"camel.source.endpoint.mode": {
"name": "camel.source.endpoint.mode",
"description": "The output format of the weather data. One of: [HTML] [JSON] [XML]",
"defaultValue": "\"JSON\"",
"priority": "MEDIUM",
"required": "false",
"enum": [
"HTML",
"JSON",
"XML"
]
},
"camel.source.endpoint.period": {
"name": "camel.source.endpoint.period",
"description": "If null, the current weather will be returned, else use values of 5, 7, 14 days. Only the numeric value for the forecast period is actually parsed, so spelling, capitalisation of the time period is up to you (its ignored)",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.units": {
"name": "camel.source.endpoint.units",
"description": "The units for temperature measurement. One of: [IMPERIAL] [METRIC]",
"priority": "MEDIUM",
"required": "false",
"enum": [
"IMPERIAL",
"METRIC"
]
},
"camel.source.endpoint.weatherApi": {
"name": "camel.source.endpoint.weatherApi",
"description": "The API to use (current, forecast\/3 hour, forecast daily, station) One of: [Current] [Station] [Hourly] [Daily]",
"priority": "MEDIUM",
"required": "false",
"enum": [
"Current",
"Station",
"Hourly",
"Daily"
]
},
"camel.source.endpoint.bridgeErrorHandler": {
"name": "camel.source.endpoint.bridgeErrorHandler",
"description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.sendEmptyMessageWhenIdle": {
"name": "camel.source.endpoint.sendEmptyMessageWhenIdle",
"description": "If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.exceptionHandler": {
"name": "camel.source.endpoint.exceptionHandler",
"description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.exchangePattern": {
"name": "camel.source.endpoint.exchangePattern",
"description": "Sets the exchange pattern when the consumer creates an exchange. One of: [InOnly] [InOut] [InOptionalOut]",
"priority": "MEDIUM",
"required": "false",
"enum": [
"InOnly",
"InOut",
"InOptionalOut"
]
},
"camel.source.endpoint.pollStrategy": {
"name": "camel.source.endpoint.pollStrategy",
"description": "A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.geoLocationProvider": {
"name": "camel.source.endpoint.geoLocationProvider",
"description": "A custum geolocation provider to determine the longitude and latitude to use when no location information is set. The default implementaion uses the ipstack API and requires geolocationAccessKey and geolocationRequestHostIP",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.httpClient": {
"name": "camel.source.endpoint.httpClient",
"description": "To use an existing configured http client (for example with http proxy)",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.synchronous": {
"name": "camel.source.endpoint.synchronous",
"description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.cnt": {
"name": "camel.source.endpoint.cnt",
"description": "Number of results to be found",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.ids": {
"name": "camel.source.endpoint.ids",
"description": "List of id's of city\/stations. You can separate multiple ids by comma.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.lat": {
"name": "camel.source.endpoint.lat",
"description": "Latitude of location. You can use lat and lon options instead of location. For boxed queries this is the bottom latitude.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.location": {
"name": "camel.source.endpoint.location",
"description": "If null Camel will try and determine your current location using the geolocation of your ip address, else specify the city,country. For well known city names, Open Weather Map will determine the best fit, but multiple results may be returned. Hence specifying and country as well will return more accurate data. If you specify current as the location then the component will try to get the current latitude and longitude and use that to get the weather details. You can use lat and lon options instead of location.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.lon": {
"name": "camel.source.endpoint.lon",
"description": "Longitude of location. You can use lat and lon options instead of location. For boxed queries this is the left longtitude.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.rightLon": {
"name": "camel.source.endpoint.rightLon",
"description": "For boxed queries this is the right longtitude. Needs to be used in combination with topLat and zoom.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.topLat": {
"name": "camel.source.endpoint.topLat",
"description": "For boxed queries this is the top latitude. Needs to be used in combination with rightLon and zoom.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.zip": {
"name": "camel.source.endpoint.zip",
"description": "Zip-code, e.g. 94040,us",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.zoom": {
"name": "camel.source.endpoint.zoom",
"description": "For boxed queries this is the zoom. Needs to be used in combination with rightLon and topLat.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.backoffErrorThreshold": {
"name": "camel.source.endpoint.backoffErrorThreshold",
"description": "The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.backoffIdleThreshold": {
"name": "camel.source.endpoint.backoffIdleThreshold",
"description": "The number of subsequent idle polls that should happen before the backoffMultipler should kick-in.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.backoffMultiplier": {
"name": "camel.source.endpoint.backoffMultiplier",
"description": "To let the scheduled polling consumer backoff if there has been a number of subsequent idles\/errors in a row. The multiplier is then the number of polls that will be skipped before the next actual attempt is happening again. When this option is in use then backoffIdleThreshold and\/or backoffErrorThreshold must also be configured.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.delay": {
"name": "camel.source.endpoint.delay",
"description": "Milliseconds before the next poll.",
"defaultValue": "500L",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.greedy": {
"name": "camel.source.endpoint.greedy",
"description": "If greedy is enabled, then the ScheduledPollConsumer will run immediately again, if the previous run polled 1 or more messages.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.initialDelay": {
"name": "camel.source.endpoint.initialDelay",
"description": "Milliseconds before the first poll starts.",
"defaultValue": "1000L",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.repeatCount": {
"name": "camel.source.endpoint.repeatCount",
"description": "Specifies a maximum limit of number of fires. So if you set it to 1, the scheduler will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever.",
"defaultValue": "0L",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.runLoggingLevel": {
"name": "camel.source.endpoint.runLoggingLevel",
"description": "The consumer logs a start\/complete log line when it polls. This option allows you to configure the logging level for that. One of: [TRACE] [DEBUG] [INFO] [WARN] [ERROR] [OFF]",
"defaultValue": "\"TRACE\"",
"priority": "MEDIUM",
"required": "false",
"enum": [
"TRACE",
"DEBUG",
"INFO",
"WARN",
"ERROR",
"OFF"
]
},
"camel.source.endpoint.scheduledExecutorService": {
"name": "camel.source.endpoint.scheduledExecutorService",
"description": "Allows for configuring a custom\/shared thread pool to use for the consumer. By default each consumer has its own single threaded thread pool.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.scheduler": {
"name": "camel.source.endpoint.scheduler",
"description": "To use a cron scheduler from either camel-spring or camel-quartz component. Use value spring or quartz for built in scheduler",
"defaultValue": "\"none\"",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.schedulerProperties": {
"name": "camel.source.endpoint.schedulerProperties",
"description": "To configure additional properties when using a custom scheduler or any of the Quartz, Spring based scheduler.",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.startScheduler": {
"name": "camel.source.endpoint.startScheduler",
"description": "Whether the scheduler should be auto started.",
"defaultValue": "true",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.timeUnit": {
"name": "camel.source.endpoint.timeUnit",
"description": "Time unit for initialDelay and delay options. One of: [NANOSECONDS] [MICROSECONDS] [MILLISECONDS] [SECONDS] [MINUTES] [HOURS] [DAYS]",
"defaultValue": "\"MILLISECONDS\"",
"priority": "MEDIUM",
"required": "false",
"enum": [
"NANOSECONDS",
"MICROSECONDS",
"MILLISECONDS",
"SECONDS",
"MINUTES",
"HOURS",
"DAYS"
]
},
"camel.source.endpoint.useFixedDelay": {
"name": "camel.source.endpoint.useFixedDelay",
"description": "Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details.",
"defaultValue": "true",
"priority": "MEDIUM",
"required": "false"
},
"camel.source.endpoint.geolocationAccessKey": {
"name": "camel.source.endpoint.geolocationAccessKey",
"description": "The geolocation service now needs an accessKey to be used",
"priority": "HIGH",
"required": "true"
},
"camel.source.endpoint.geolocationRequestHostIP": {
"name": "camel.source.endpoint.geolocationRequestHostIP",
"description": "The geolocation service now needs to specify the IP associated to the accessKey you're using",
"priority": "HIGH",
"required": "true"
},
"camel.component.weather.bridgeErrorHandler": {
"name": "camel.component.weather.bridgeErrorHandler",
"description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.",
"defaultValue": "false",
"priority": "MEDIUM",
"required": "false"
},
"camel.component.weather.autowiredEnabled": {
"name": "camel.component.weather.autowiredEnabled",
"description": "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.",
"defaultValue": "true",
"priority": "MEDIUM",
"required": "false"
}
}
}