This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit a20e4e79e99c9ad48518fb74b552c8de4fec4756 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 15:04:19 2026 +0100 CAMEL-23832: camel-jmx - improve the component and option descriptions This commit rewrites the component description, the texts of 27 endpoint options and of the jmx.handback header. The old differenceMode text said the notification reports the difference from the threshold; the JMX monitors compare the difference between two successive observations. The new texts also say that notifyMatch is not used without monitorType, that the handback option is not used with monitorType, and what the counter and gauge options do. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-jmx is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../org/apache/camel/catalog/components/jmx.json | 58 ++-- .../apache/camel/catalog/docs/jmx-component.adoc | 2 +- .../org/apache/camel/component/jmx/jmx.json | 58 ++-- .../camel-jmx/src/main/docs/jmx-component.adoc | 2 +- .../apache/camel/component/jmx/JMXConstants.java | 5 +- .../apache/camel/component/jmx/JMXEndpoint.java | 235 +++++++-------- .../component/ComponentsBuilderFactory.java | 3 +- .../component/dsl/JmxComponentBuilderFactory.java | 6 +- .../builder/endpoint/EndpointHeaderBuilders.java | 3 +- .../builder/endpoint/StaticEndpointBuilders.java | 18 +- .../endpoint/dsl/JMXEndpointBuilderFactory.java | 322 +++++++++++++-------- tasks/component-descriptions.md | 2 +- 12 files changed, 404 insertions(+), 310 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jmx.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jmx.json index b6822fc7954e..3a5100e08982 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jmx.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jmx.json @@ -3,7 +3,7 @@ "kind": "component", "name": "jmx", "title": "JMX", - "description": "Receive JMX notifications.", + "description": "Receive the notifications of an MBean on a local or remote MBean server, or of a JMX monitor that observes an MBean attribute.", "deprecated": false, "firstVersion": "2.6.0", "label": "monitoring", @@ -28,41 +28,41 @@ "autowiredEnabled": { "index": 1, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "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 t [...] }, "headers": { - "jmx.handback": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "Object", "deprecated": false, "autowired": false, "secret": false, "description": "The handback.", "constantName": "org.apache.camel.component.jmx.JMXConstants#JMX_HANDBACK" } + "jmx.handback": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "Object", "deprecated": false, "autowired": false, "secret": false, "description": "The handback object that the consumer registered with its notification listener: the value of the handback option, or the monitor MBean when monitorType is set.", "constantName": "org.apache.camel.component.jmx.JMXConstants#JMX_HANDBACK" } }, "bodyTypes": { "consumerOut": { "carriers": [ "text" ], "javaType": "java.lang.String", "format": "xml", "byOption": [ { "option": "format", "value": "raw", "carriers": [ "pojo" ], "javaType": "javax.management.Notification" } ], "description": "The notification as XML text, such as an AttributeChangeNotification or a MonitorNotification element; with format=raw the Notification object. The handback object is in the jmx.handback header" } }, "properties": { - "serverURL": { "index": 0, "kind": "path", "displayName": "Server URL", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Server url comes from the remaining endpoint. Use platform to connect to local JVM." }, - "format": { "index": 1, "kind": "parameter", "displayName": "Format", "group": "consumer", "label": "", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "xml", "raw" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "xml", "description": "Format for the message body. Either xml or raw. If xml, the notification is serialized to xml. If raw, then the raw java object is set as the body." }, - "granularityPeriod": { "index": 2, "kind": "parameter", "displayName": "Granularity Period", "group": "consumer", "label": "", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "10000", "description": "The frequency to poll the bean to check the monitor (monitor types only)." }, - "monitorType": { "index": 3, "kind": "parameter", "displayName": "Monitor Type", "group": "consumer", "label": "", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "counter", "gauge", "string" ], "deprecated": false, "autowired": false, "secret": false, "description": "The type of monitor to create. One of string, gauge, counter (monitor types only)." }, - "objectDomain": { "index": 4, "kind": "parameter", "displayName": "Object Domain", "group": "consumer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain for the mbean you're connecting to" }, - "objectName": { "index": 5, "kind": "parameter", "displayName": "Object Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name key for the mbean you're connecting to. This value is mutually exclusive with the object properties that get passed." }, - "observedAttribute": { "index": 6, "kind": "parameter", "displayName": "Observed Attribute", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The attribute to observe for the monitor bean or consumer." }, + "serverURL": { "index": 0, "kind": "path", "displayName": "Server URL", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The MBean server to connect to: platform for the platform MBean server of the JVM that runs Camel, or the JMX service URL of a remote MBean server, for example service:jmx:rmi:\/\/\/jndi\/rmi:\/\/localhost:1099\/jmxrmi. The monitorType opt [...] + "format": { "index": 1, "kind": "parameter", "displayName": "Format", "group": "consumer", "label": "", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "xml", "raw" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "xml", "description": "The format of the message body: xml for the notification as XML text, as defined by the notifications.xsd schema of camel-jmx, or raw for the javax.management.Notification object." }, + "granularityPeriod": { "index": 2, "kind": "parameter", "displayName": "Granularity Period", "group": "consumer", "label": "", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "10000", "description": "The period at which the monitor reads the value of the observed attribute (the granularity period of the JMX monitor). Only used with monitorType." }, + "monitorType": { "index": 3, "kind": "parameter", "displayName": "Monitor Type", "group": "consumer", "label": "", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "counter", "gauge", "string" ], "deprecated": false, "autowired": false, "secret": false, "description": "The type of the JMX monitor to create: counter (CounterMonitor), gauge (GaugeMonitor) or string (StringMonitor). If set, the consumer registers a monitor MBean on the platform MBean server t [...] + "objectDomain": { "index": 4, "kind": "parameter", "displayName": "Object Domain", "group": "consumer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain of the ObjectName of the MBean to listen to, for example java.lang. With monitorType, the consumer also registers its monitor MBean in this domain." }, + "objectName": { "index": 5, "kind": "parameter", "displayName": "Object Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The value of the name key of the ObjectName of the MBean to listen to: the consumer uses the ObjectName objectDomain:name=objectName. Set either this option or the objectProperties option, not both." }, + "observedAttribute": { "index": 6, "kind": "parameter", "displayName": "Observed Attribute", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the MBean attribute to observe. With monitorType it is required, and the monitor observes this attribute. Without monitorType and without notificationFilter, the consumer receives only the AttributeChangeNo [...] "bridgeErrorHandler": { "index": 7, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming [...] "exceptionHandler": { "index": 8, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By def [...] "exchangePattern": { "index": 9, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "enum", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, - "executorService": { "index": 10, "kind": "parameter", "displayName": "Executor Service", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.concurrent.ExecutorService", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom shared thread pool for the consumers. By default each consume has their own thread-pool to process and route notifications." }, - "handback": { "index": 11, "kind": "parameter", "displayName": "Handback", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, "autowired": false, "secret": false, "description": "Value to handback to the listener when a notification is received. This value will be put in the message header with the key JMXConstants#JMX_HANDBACK." }, - "notificationFilter": { "index": 12, "kind": "parameter", "displayName": "Notification Filter", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "javax.management.NotificationFilter", "deprecated": false, "autowired": false, "secret": false, "description": "Reference to a bean that implements the NotificationFilter." }, - "objectProperties": { "index": 13, "kind": "parameter", "displayName": "Object Properties", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.String>", "prefix": "key.", "multiValue": true, "deprecated": false, "autowired": false, "secret": false, "description": "Properties for the object name. These values will be used if the objectName param is not set. This is a multi-value option with prefix: key." }, - "reconnectDelay": { "index": 14, "kind": "parameter", "displayName": "Reconnect Delay", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 10, "description": "The number of seconds to wait before attempting to retry establishment of the initial connection or attempt to reconnect a lost connection" }, - "reconnectOnConnectionFailure": { "index": 15, "kind": "parameter", "displayName": "Reconnect On Connection Failure", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true the consumer will attempt to reconnect to the JMX server when any connection failure occurs. The consumer will attempt to re-establish the JMX connection every 'x [...] - "testConnectionOnStartup": { "index": 16, "kind": "parameter", "displayName": "Test Connection On Startup", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "If true the consumer will throw an exception if unable to establish the JMX connection upon startup. If false, the consumer will attempt to establish the JMX connection every 'x' se [...] - "initThreshold": { "index": 17, "kind": "parameter", "displayName": "Init Threshold", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "Initial threshold for the monitor. The value must exceed this before notifications are fired (counter monitor only)." }, - "modulus": { "index": 18, "kind": "parameter", "displayName": "Modulus", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The value at which the counter is reset to zero (counter monitor only)." }, - "offset": { "index": 19, "kind": "parameter", "displayName": "Offset", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The amount to increment the threshold after it's been exceeded (counter monitor only)." }, - "differenceMode": { "index": 20, "kind": "parameter", "displayName": "Difference Mode", "group": "gauge", "label": "counter,gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, then the value reported in the notification is the difference from the threshold as opposed to the value itself (counter and gauge monitor only)." }, - "notifyHigh": { "index": 21, "kind": "parameter", "displayName": "Notify High", "group": "gauge", "label": "gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, the gauge will fire a notification when the high threshold is exceeded (gauge monitor only)." }, - "notifyLow": { "index": 22, "kind": "parameter", "displayName": "Notify Low", "group": "gauge", "label": "gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, the gauge will fire a notification when the low threshold is exceeded (gauge monitor only)." }, - "thresholdHigh": { "index": 23, "kind": "parameter", "displayName": "Threshold High", "group": "gauge", "label": "gauge", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "autowired": false, "secret": false, "description": "Value for the gauge's high threshold (gauge monitor only)." }, - "thresholdLow": { "index": 24, "kind": "parameter", "displayName": "Threshold Low", "group": "gauge", "label": "gauge", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "autowired": false, "secret": false, "description": "Value for the gauge's low threshold (gauge monitor only)." }, - "password": { "index": 25, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Credentials for making a remote connection" }, - "user": { "index": 26, "kind": "parameter", "displayName": "User", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Credentials for making a remote connection" }, - "notifyDiffer": { "index": 27, "kind": "parameter", "displayName": "Notify Differ", "group": "string", "label": "consumer,string", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, will fire a notification when the string attribute differs from the string to compare (string monitor or consumer). By default the consumer will notify match if observed attribute and string [...] - "notifyMatch": { "index": 28, "kind": "parameter", "displayName": "Notify Match", "group": "string", "label": "consumer,string", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, will fire a notification when the string attribute matches the string to compare (string monitor or consumer). By default the consumer will notify match if observed attribute and string to com [...] - "stringToCompare": { "index": 29, "kind": "parameter", "displayName": "String To Compare", "group": "string", "label": "consumer,string", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Value for attribute to compare (string monitor or consumer). By default the consumer will notify match if observed attribute and string to compare has been configured." } + "executorService": { "index": 10, "kind": "parameter", "displayName": "Executor Service", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.concurrent.ExecutorService", "deprecated": false, "autowired": false, "secret": false, "description": "A shared thread pool that routes the notifications of the consumers that use it. If not set, each consumer creates its own single-threaded pool, which routes its notifications one at a time in [...] + "handback": { "index": 11, "kind": "parameter", "displayName": "Handback", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, "autowired": false, "secret": false, "description": "An object that the MBean server hands back with each notification, which the consumer puts in the jmx.handback header. With monitorType this option is not used, and the header holds the monitor MBean instead." }, + "notificationFilter": { "index": 12, "kind": "parameter", "displayName": "Notification Filter", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "javax.management.NotificationFilter", "deprecated": false, "autowired": false, "secret": false, "description": "A javax.management.NotificationFilter that selects the notifications to receive. It replaces the filter that the consumer builds from observedAttribute and stringToCompare, and with monito [...] + "objectProperties": { "index": 13, "kind": "parameter", "displayName": "Object Properties", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.String>", "prefix": "key.", "multiValue": true, "deprecated": false, "autowired": false, "secret": false, "description": "The key properties of the ObjectName of the MBean to listen to, for example key.type=Threading for the ObjectName java.lang:type=Threading. [...] + "reconnectDelay": { "index": 14, "kind": "parameter", "displayName": "Reconnect Delay", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 10, "description": "The number of seconds to wait before the next attempt to connect to a remote MBean server: at startup when testConnectionOnStartup is false, and after a lost connection when reconnectOnConnectionFailure is t [...] + "reconnectOnConnectionFailure": { "index": 15, "kind": "parameter", "displayName": "Reconnect On Connection Failure", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the consumer connects again to a remote MBean server when the connection is closed or fails, or notifications are lost. It tries every reconnectDelay seconds unti [...] + "testConnectionOnStartup": { "index": 16, "kind": "parameter", "displayName": "Test Connection On Startup", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the consumer fails to start when it cannot connect to a remote MBean server. If false, the consumer logs a warning and tries to connect again every reconnectDelay seconds un [...] + "initThreshold": { "index": 17, "kind": "parameter", "displayName": "Init Threshold", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The initial threshold of the counter monitor, which sends a notification when the counter reaches or exceeds the threshold. The value is converted to the type of the observed attribute, which must be an integer type. If not set, th [...] + "modulus": { "index": 18, "kind": "parameter", "displayName": "Modulus", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The value at which the observed counter wraps around to zero. The counter monitor sets the threshold back to initThreshold when it exceeds this value, and in difference mode adds it to a negative difference. If not set (0), the counter is taken [...] + "offset": { "index": 19, "kind": "parameter", "displayName": "Offset", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The value that the counter monitor adds to the threshold each time the counter reaches it, so that it sends a notification each time the counter grows by this value. If not set (0), the threshold does not change. Only used when monitorType is cou [...] + "differenceMode": { "index": 20, "kind": "parameter", "displayName": "Difference Mode", "group": "gauge", "label": "counter,gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the counter or gauge monitor compares the difference between two successive observations of the attribute with the thresholds, instead of the value of the attribute itself. Only used when mo [...] + "notifyHigh": { "index": 21, "kind": "parameter", "displayName": "Notify High", "group": "gauge", "label": "gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the gauge monitor sends a notification when the observed value rises to or above thresholdHigh. After that it sends the next high notification only once the value has fallen to or below thresholdLow. When m [...] + "notifyLow": { "index": 22, "kind": "parameter", "displayName": "Notify Low", "group": "gauge", "label": "gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the gauge monitor sends a notification when the observed value falls to or below thresholdLow. After that it sends the next low notification only once the value has risen to or above thresholdHigh. When monit [...] + "thresholdHigh": { "index": 23, "kind": "parameter", "displayName": "Threshold High", "group": "gauge", "label": "gauge", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "autowired": false, "secret": false, "description": "The high threshold of the gauge monitor, converted to the type of the observed attribute. It must not be lower than thresholdLow. Required when monitorType is gauge." }, + "thresholdLow": { "index": 24, "kind": "parameter", "displayName": "Threshold Low", "group": "gauge", "label": "gauge", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "autowired": false, "secret": false, "description": "The low threshold of the gauge monitor, converted to the type of the observed attribute. It must not be higher than thresholdHigh. Required when monitorType is gauge." }, + "password": { "index": 25, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password to authenticate with on a remote MBean server. The consumer passes user and password to the JMX connector as its credentials. Not used for the platform MBean server." }, + "user": { "index": 26, "kind": "parameter", "displayName": "User", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The user name to authenticate with on a remote MBean server. The consumer passes user and password to the JMX connector as its credentials. Not used for the platform MBean server." }, + "notifyDiffer": { "index": 27, "kind": "parameter", "displayName": "Notify Differ", "group": "string", "label": "consumer,string", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to receive a notification when the value of the observed attribute differs from stringToCompare. With monitorType string, the string monitor sends one each time the value starts to differ. Wi [...] + "notifyMatch": { "index": 28, "kind": "parameter", "displayName": "Notify Match", "group": "string", "label": "consumer,string", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the string monitor sends a notification each time the value of the observed attribute starts to match stringToCompare. When monitorType is string, notifyMatch, notifyDiffer or both must be true [...] + "stringToCompare": { "index": 29, "kind": "parameter", "displayName": "String To Compare", "group": "string", "label": "consumer,string", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The text that the value of the observed attribute is compared with. Required when monitorType is string. Without monitorType, the consumer compares it with the new value of each AttributeChangeNotification o [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jmx-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jmx-component.adoc index 7c28671b5e85..fa4a6646a5ac 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jmx-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jmx-component.adoc @@ -2,7 +2,7 @@ :doctitle: JMX :shortname: jmx :artifactid: camel-jmx -:description: Receive JMX notifications. +:description: Receive the notifications of an MBean on a local or remote MBean server, or of a JMX monitor that observes an MBean attribute. :since: 2.6 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-jmx/src/generated/resources/META-INF/org/apache/camel/component/jmx/jmx.json b/components/camel-jmx/src/generated/resources/META-INF/org/apache/camel/component/jmx/jmx.json index b6822fc7954e..3a5100e08982 100644 --- a/components/camel-jmx/src/generated/resources/META-INF/org/apache/camel/component/jmx/jmx.json +++ b/components/camel-jmx/src/generated/resources/META-INF/org/apache/camel/component/jmx/jmx.json @@ -3,7 +3,7 @@ "kind": "component", "name": "jmx", "title": "JMX", - "description": "Receive JMX notifications.", + "description": "Receive the notifications of an MBean on a local or remote MBean server, or of a JMX monitor that observes an MBean attribute.", "deprecated": false, "firstVersion": "2.6.0", "label": "monitoring", @@ -28,41 +28,41 @@ "autowiredEnabled": { "index": 1, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "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 t [...] }, "headers": { - "jmx.handback": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "Object", "deprecated": false, "autowired": false, "secret": false, "description": "The handback.", "constantName": "org.apache.camel.component.jmx.JMXConstants#JMX_HANDBACK" } + "jmx.handback": { "index": 0, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "Object", "deprecated": false, "autowired": false, "secret": false, "description": "The handback object that the consumer registered with its notification listener: the value of the handback option, or the monitor MBean when monitorType is set.", "constantName": "org.apache.camel.component.jmx.JMXConstants#JMX_HANDBACK" } }, "bodyTypes": { "consumerOut": { "carriers": [ "text" ], "javaType": "java.lang.String", "format": "xml", "byOption": [ { "option": "format", "value": "raw", "carriers": [ "pojo" ], "javaType": "javax.management.Notification" } ], "description": "The notification as XML text, such as an AttributeChangeNotification or a MonitorNotification element; with format=raw the Notification object. The handback object is in the jmx.handback header" } }, "properties": { - "serverURL": { "index": 0, "kind": "path", "displayName": "Server URL", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Server url comes from the remaining endpoint. Use platform to connect to local JVM." }, - "format": { "index": 1, "kind": "parameter", "displayName": "Format", "group": "consumer", "label": "", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "xml", "raw" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "xml", "description": "Format for the message body. Either xml or raw. If xml, the notification is serialized to xml. If raw, then the raw java object is set as the body." }, - "granularityPeriod": { "index": 2, "kind": "parameter", "displayName": "Granularity Period", "group": "consumer", "label": "", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "10000", "description": "The frequency to poll the bean to check the monitor (monitor types only)." }, - "monitorType": { "index": 3, "kind": "parameter", "displayName": "Monitor Type", "group": "consumer", "label": "", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "counter", "gauge", "string" ], "deprecated": false, "autowired": false, "secret": false, "description": "The type of monitor to create. One of string, gauge, counter (monitor types only)." }, - "objectDomain": { "index": 4, "kind": "parameter", "displayName": "Object Domain", "group": "consumer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain for the mbean you're connecting to" }, - "objectName": { "index": 5, "kind": "parameter", "displayName": "Object Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name key for the mbean you're connecting to. This value is mutually exclusive with the object properties that get passed." }, - "observedAttribute": { "index": 6, "kind": "parameter", "displayName": "Observed Attribute", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The attribute to observe for the monitor bean or consumer." }, + "serverURL": { "index": 0, "kind": "path", "displayName": "Server URL", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The MBean server to connect to: platform for the platform MBean server of the JVM that runs Camel, or the JMX service URL of a remote MBean server, for example service:jmx:rmi:\/\/\/jndi\/rmi:\/\/localhost:1099\/jmxrmi. The monitorType opt [...] + "format": { "index": 1, "kind": "parameter", "displayName": "Format", "group": "consumer", "label": "", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "xml", "raw" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "xml", "description": "The format of the message body: xml for the notification as XML text, as defined by the notifications.xsd schema of camel-jmx, or raw for the javax.management.Notification object." }, + "granularityPeriod": { "index": 2, "kind": "parameter", "displayName": "Granularity Period", "group": "consumer", "label": "", "required": false, "type": "duration", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "10000", "description": "The period at which the monitor reads the value of the observed attribute (the granularity period of the JMX monitor). Only used with monitorType." }, + "monitorType": { "index": 3, "kind": "parameter", "displayName": "Monitor Type", "group": "consumer", "label": "", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "counter", "gauge", "string" ], "deprecated": false, "autowired": false, "secret": false, "description": "The type of the JMX monitor to create: counter (CounterMonitor), gauge (GaugeMonitor) or string (StringMonitor). If set, the consumer registers a monitor MBean on the platform MBean server t [...] + "objectDomain": { "index": 4, "kind": "parameter", "displayName": "Object Domain", "group": "consumer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain of the ObjectName of the MBean to listen to, for example java.lang. With monitorType, the consumer also registers its monitor MBean in this domain." }, + "objectName": { "index": 5, "kind": "parameter", "displayName": "Object Name", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The value of the name key of the ObjectName of the MBean to listen to: the consumer uses the ObjectName objectDomain:name=objectName. Set either this option or the objectProperties option, not both." }, + "observedAttribute": { "index": 6, "kind": "parameter", "displayName": "Observed Attribute", "group": "consumer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the MBean attribute to observe. With monitorType it is required, and the monitor observes this attribute. Without monitorType and without notificationFilter, the consumer receives only the AttributeChangeNo [...] "bridgeErrorHandler": { "index": 7, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming [...] "exceptionHandler": { "index": 8, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By def [...] "exchangePattern": { "index": 9, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "enum", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." }, - "executorService": { "index": 10, "kind": "parameter", "displayName": "Executor Service", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.concurrent.ExecutorService", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom shared thread pool for the consumers. By default each consume has their own thread-pool to process and route notifications." }, - "handback": { "index": 11, "kind": "parameter", "displayName": "Handback", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, "autowired": false, "secret": false, "description": "Value to handback to the listener when a notification is received. This value will be put in the message header with the key JMXConstants#JMX_HANDBACK." }, - "notificationFilter": { "index": 12, "kind": "parameter", "displayName": "Notification Filter", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "javax.management.NotificationFilter", "deprecated": false, "autowired": false, "secret": false, "description": "Reference to a bean that implements the NotificationFilter." }, - "objectProperties": { "index": 13, "kind": "parameter", "displayName": "Object Properties", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.String>", "prefix": "key.", "multiValue": true, "deprecated": false, "autowired": false, "secret": false, "description": "Properties for the object name. These values will be used if the objectName param is not set. This is a multi-value option with prefix: key." }, - "reconnectDelay": { "index": 14, "kind": "parameter", "displayName": "Reconnect Delay", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 10, "description": "The number of seconds to wait before attempting to retry establishment of the initial connection or attempt to reconnect a lost connection" }, - "reconnectOnConnectionFailure": { "index": 15, "kind": "parameter", "displayName": "Reconnect On Connection Failure", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true the consumer will attempt to reconnect to the JMX server when any connection failure occurs. The consumer will attempt to re-establish the JMX connection every 'x [...] - "testConnectionOnStartup": { "index": 16, "kind": "parameter", "displayName": "Test Connection On Startup", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "If true the consumer will throw an exception if unable to establish the JMX connection upon startup. If false, the consumer will attempt to establish the JMX connection every 'x' se [...] - "initThreshold": { "index": 17, "kind": "parameter", "displayName": "Init Threshold", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "Initial threshold for the monitor. The value must exceed this before notifications are fired (counter monitor only)." }, - "modulus": { "index": 18, "kind": "parameter", "displayName": "Modulus", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The value at which the counter is reset to zero (counter monitor only)." }, - "offset": { "index": 19, "kind": "parameter", "displayName": "Offset", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The amount to increment the threshold after it's been exceeded (counter monitor only)." }, - "differenceMode": { "index": 20, "kind": "parameter", "displayName": "Difference Mode", "group": "gauge", "label": "counter,gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, then the value reported in the notification is the difference from the threshold as opposed to the value itself (counter and gauge monitor only)." }, - "notifyHigh": { "index": 21, "kind": "parameter", "displayName": "Notify High", "group": "gauge", "label": "gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, the gauge will fire a notification when the high threshold is exceeded (gauge monitor only)." }, - "notifyLow": { "index": 22, "kind": "parameter", "displayName": "Notify Low", "group": "gauge", "label": "gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, the gauge will fire a notification when the low threshold is exceeded (gauge monitor only)." }, - "thresholdHigh": { "index": 23, "kind": "parameter", "displayName": "Threshold High", "group": "gauge", "label": "gauge", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "autowired": false, "secret": false, "description": "Value for the gauge's high threshold (gauge monitor only)." }, - "thresholdLow": { "index": 24, "kind": "parameter", "displayName": "Threshold Low", "group": "gauge", "label": "gauge", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "autowired": false, "secret": false, "description": "Value for the gauge's low threshold (gauge monitor only)." }, - "password": { "index": 25, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Credentials for making a remote connection" }, - "user": { "index": 26, "kind": "parameter", "displayName": "User", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "Credentials for making a remote connection" }, - "notifyDiffer": { "index": 27, "kind": "parameter", "displayName": "Notify Differ", "group": "string", "label": "consumer,string", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, will fire a notification when the string attribute differs from the string to compare (string monitor or consumer). By default the consumer will notify match if observed attribute and string [...] - "notifyMatch": { "index": 28, "kind": "parameter", "displayName": "Notify Match", "group": "string", "label": "consumer,string", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If true, will fire a notification when the string attribute matches the string to compare (string monitor or consumer). By default the consumer will notify match if observed attribute and string to com [...] - "stringToCompare": { "index": 29, "kind": "parameter", "displayName": "String To Compare", "group": "string", "label": "consumer,string", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Value for attribute to compare (string monitor or consumer). By default the consumer will notify match if observed attribute and string to compare has been configured." } + "executorService": { "index": 10, "kind": "parameter", "displayName": "Executor Service", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.concurrent.ExecutorService", "deprecated": false, "autowired": false, "secret": false, "description": "A shared thread pool that routes the notifications of the consumers that use it. If not set, each consumer creates its own single-threaded pool, which routes its notifications one at a time in [...] + "handback": { "index": 11, "kind": "parameter", "displayName": "Handback", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, "autowired": false, "secret": false, "description": "An object that the MBean server hands back with each notification, which the consumer puts in the jmx.handback header. With monitorType this option is not used, and the header holds the monitor MBean instead." }, + "notificationFilter": { "index": 12, "kind": "parameter", "displayName": "Notification Filter", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "javax.management.NotificationFilter", "deprecated": false, "autowired": false, "secret": false, "description": "A javax.management.NotificationFilter that selects the notifications to receive. It replaces the filter that the consumer builds from observedAttribute and stringToCompare, and with monito [...] + "objectProperties": { "index": 13, "kind": "parameter", "displayName": "Object Properties", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.String>", "prefix": "key.", "multiValue": true, "deprecated": false, "autowired": false, "secret": false, "description": "The key properties of the ObjectName of the MBean to listen to, for example key.type=Threading for the ObjectName java.lang:type=Threading. [...] + "reconnectDelay": { "index": 14, "kind": "parameter", "displayName": "Reconnect Delay", "group": "advanced", "label": "advanced", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 10, "description": "The number of seconds to wait before the next attempt to connect to a remote MBean server: at startup when testConnectionOnStartup is false, and after a lost connection when reconnectOnConnectionFailure is t [...] + "reconnectOnConnectionFailure": { "index": 15, "kind": "parameter", "displayName": "Reconnect On Connection Failure", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the consumer connects again to a remote MBean server when the connection is closed or fails, or notifications are lost. It tries every reconnectDelay seconds unti [...] + "testConnectionOnStartup": { "index": 16, "kind": "parameter", "displayName": "Test Connection On Startup", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the consumer fails to start when it cannot connect to a remote MBean server. If false, the consumer logs a warning and tries to connect again every reconnectDelay seconds un [...] + "initThreshold": { "index": 17, "kind": "parameter", "displayName": "Init Threshold", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The initial threshold of the counter monitor, which sends a notification when the counter reaches or exceeds the threshold. The value is converted to the type of the observed attribute, which must be an integer type. If not set, th [...] + "modulus": { "index": 18, "kind": "parameter", "displayName": "Modulus", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The value at which the observed counter wraps around to zero. The counter monitor sets the threshold back to initThreshold when it exceeds this value, and in difference mode adds it to a negative difference. If not set (0), the counter is taken [...] + "offset": { "index": 19, "kind": "parameter", "displayName": "Offset", "group": "counter", "label": "counter", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The value that the counter monitor adds to the threshold each time the counter reaches it, so that it sends a notification each time the counter grows by this value. If not set (0), the threshold does not change. Only used when monitorType is cou [...] + "differenceMode": { "index": 20, "kind": "parameter", "displayName": "Difference Mode", "group": "gauge", "label": "counter,gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the counter or gauge monitor compares the difference between two successive observations of the attribute with the thresholds, instead of the value of the attribute itself. Only used when mo [...] + "notifyHigh": { "index": 21, "kind": "parameter", "displayName": "Notify High", "group": "gauge", "label": "gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the gauge monitor sends a notification when the observed value rises to or above thresholdHigh. After that it sends the next high notification only once the value has fallen to or below thresholdLow. When m [...] + "notifyLow": { "index": 22, "kind": "parameter", "displayName": "Notify Low", "group": "gauge", "label": "gauge", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the gauge monitor sends a notification when the observed value falls to or below thresholdLow. After that it sends the next low notification only once the value has risen to or above thresholdHigh. When monit [...] + "thresholdHigh": { "index": 23, "kind": "parameter", "displayName": "Threshold High", "group": "gauge", "label": "gauge", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "autowired": false, "secret": false, "description": "The high threshold of the gauge monitor, converted to the type of the observed attribute. It must not be lower than thresholdLow. Required when monitorType is gauge." }, + "thresholdLow": { "index": 24, "kind": "parameter", "displayName": "Threshold Low", "group": "gauge", "label": "gauge", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "autowired": false, "secret": false, "description": "The low threshold of the gauge monitor, converted to the type of the observed attribute. It must not be higher than thresholdHigh. Required when monitorType is gauge." }, + "password": { "index": 25, "kind": "parameter", "displayName": "Password", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password to authenticate with on a remote MBean server. The consumer passes user and password to the JMX connector as its credentials. Not used for the platform MBean server." }, + "user": { "index": 26, "kind": "parameter", "displayName": "User", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The user name to authenticate with on a remote MBean server. The consumer passes user and password to the JMX connector as its credentials. Not used for the platform MBean server." }, + "notifyDiffer": { "index": 27, "kind": "parameter", "displayName": "Notify Differ", "group": "string", "label": "consumer,string", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to receive a notification when the value of the observed attribute differs from stringToCompare. With monitorType string, the string monitor sends one each time the value starts to differ. Wi [...] + "notifyMatch": { "index": 28, "kind": "parameter", "displayName": "Notify Match", "group": "string", "label": "consumer,string", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the string monitor sends a notification each time the value of the observed attribute starts to match stringToCompare. When monitorType is string, notifyMatch, notifyDiffer or both must be true [...] + "stringToCompare": { "index": 29, "kind": "parameter", "displayName": "String To Compare", "group": "string", "label": "consumer,string", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The text that the value of the observed attribute is compared with. Required when monitorType is string. Without monitorType, the consumer compares it with the new value of each AttributeChangeNotification o [...] } } diff --git a/components/camel-jmx/src/main/docs/jmx-component.adoc b/components/camel-jmx/src/main/docs/jmx-component.adoc index 7c28671b5e85..fa4a6646a5ac 100644 --- a/components/camel-jmx/src/main/docs/jmx-component.adoc +++ b/components/camel-jmx/src/main/docs/jmx-component.adoc @@ -2,7 +2,7 @@ :doctitle: JMX :shortname: jmx :artifactid: camel-jmx -:description: Receive JMX notifications. +:description: Receive the notifications of an MBean on a local or remote MBean server, or of a JMX monitor that observes an MBean attribute. :since: 2.6 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXConstants.java b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXConstants.java index 6beabecab7cd..3609253148f6 100644 --- a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXConstants.java +++ b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXConstants.java @@ -20,7 +20,10 @@ import org.apache.camel.spi.Metadata; public final class JMXConstants { - @Metadata(label = "consumer", description = "The handback.", javaType = "Object") + @Metadata(label = "consumer", description = "The handback object that the consumer registered with its notification" + + " listener: the value of the handback option, or the monitor MBean when" + + " monitorType is set.", + javaType = "Object") public static final String JMX_HANDBACK = "jmx.handback"; private JMXConstants() { diff --git a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java index 8b58608dede7..1f3ce6e076b5 100644 --- a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java +++ b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXEndpoint.java @@ -40,7 +40,8 @@ import org.apache.camel.support.DefaultEndpoint; import org.apache.camel.util.ObjectHelper; /** - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean server, or of a JMX monitor that observes an MBean + * attribute. * * Endpoint that describes a connection to an mbean. * <p/> @@ -76,183 +77,167 @@ public class JMXEndpoint extends DefaultEndpoint implements EndpointServiceLocat = "StringToCompare must be specified when monitoring a string attribute."; protected static final String ERR_OBSERVED_ATTRIBUTE = "Observed attribute must be specified"; - /** - * Server url comes from the remaining endpoint. Use platform to connect to local JVM. - */ - @UriPath + @UriPath(description = "The MBean server to connect to: platform for the platform MBean server of the JVM that runs " + + "Camel, or the JMX service URL of a remote MBean server, for example " + + "service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi. The monitorType option works only with " + + "platform.") private String serverURL; - /** - * The domain for the mbean you're connecting to - */ - @UriParam + @UriParam(description = "The domain of the ObjectName of the MBean to listen to, for example java.lang. With " + + "monitorType, the consumer also registers its monitor MBean in this domain.") @Metadata(required = true) private String objectDomain; - /** - * The name key for the mbean you're connecting to. This value is mutually exclusive with the object properties that - * get passed. - */ - @UriParam + @UriParam(description = "The value of the name key of the ObjectName of the MBean to listen to: the consumer uses the " + + "ObjectName objectDomain:name=objectName. Set either this option or the objectProperties option," + + " not both.") private String objectName; - /** - * The attribute to observe for the monitor bean or consumer. - */ - @UriParam + @UriParam(description = "The name of the MBean attribute to observe. With monitorType it is required, and the monitor " + + "observes this attribute. Without monitorType and without notificationFilter, the consumer " + + "receives only the AttributeChangeNotifications of this attribute, selected further by " + + "stringToCompare.") private String observedAttribute; - /** - * The frequency to poll the bean to check the monitor (monitor types only). - */ - @UriParam(defaultValue = "10000", javaType = "java.time.Duration") + @UriParam(description = "The period at which the monitor reads the value of the observed attribute (the granularity " + + "period of the JMX monitor). Only used with monitorType.", + defaultValue = "10000", javaType = "java.time.Duration") private long granularityPeriod = 10000; - /** - * The type of monitor to create. One of string, gauge, counter (monitor types only). - */ - @UriParam(enums = "counter,gauge,string") + @UriParam(description = "The type of the JMX monitor to create: counter (CounterMonitor), gauge (GaugeMonitor) or string" + + " (StringMonitor). If set, the consumer registers a monitor MBean on the platform MBean server " + + "that observes the observedAttribute of the MBean, and receives the notifications of the monitor" + + " instead of those of the MBean. Only supported when serverURL is platform.", + enums = "counter,gauge,string") private String monitorType; - /** - * Initial threshold for the monitor. The value must exceed this before notifications are fired (counter monitor - * only). - */ - @UriParam(label = "counter") + @UriParam(description = "The initial threshold of the counter monitor, which sends a notification when the counter " + + "reaches or exceeds the threshold. The value is converted to the type of the observed attribute," + + " which must be an integer type. If not set, the threshold is 0. Only used when monitorType is " + + "counter.", + label = "counter") private int initThreshold; - /** - * The amount to increment the threshold after it's been exceeded (counter monitor only). - */ - @UriParam(label = "counter") + @UriParam(description = "The value that the counter monitor adds to the threshold each time the counter reaches it, so " + + "that it sends a notification each time the counter grows by this value. If not set (0), the " + + "threshold does not change. Only used when monitorType is counter.", + label = "counter") private int offset; - /** - * The value at which the counter is reset to zero (counter monitor only). - */ - @UriParam(label = "counter") + @UriParam(description = "The value at which the observed counter wraps around to zero. The counter monitor sets the " + + "threshold back to initThreshold when it exceeds this value, and in difference mode adds it to a" + + " negative difference. If not set (0), the counter is taken not to wrap around. Only used when " + + "monitorType is counter.", + label = "counter") private int modulus; - /** - * If true, then the value reported in the notification is the difference from the threshold as opposed to the value - * itself (counter and gauge monitor only). - */ - @UriParam(label = "counter,gauge") + @UriParam(description = "Whether the counter or gauge monitor compares the difference between two successive " + + "observations of the attribute with the thresholds, instead of the value of the attribute " + + "itself. Only used when monitorType is counter or gauge.", + label = "counter,gauge") private boolean differenceMode; - /** - * If true, the gauge will fire a notification when the high threshold is exceeded (gauge monitor only). - */ - @UriParam(label = "gauge") + @UriParam(description = "Whether the gauge monitor sends a notification when the observed value rises to or above " + + "thresholdHigh. After that it sends the next high notification only once the value has fallen to" + + " or below thresholdLow. When monitorType is gauge, notifyHigh, notifyLow or both must be true.", + label = "gauge") private boolean notifyHigh; - /** - * If true, the gauge will fire a notification when the low threshold is exceeded (gauge monitor only). - */ - @UriParam(label = "gauge") + @UriParam(description = "Whether the gauge monitor sends a notification when the observed value falls to or below " + + "thresholdLow. After that it sends the next low notification only once the value has risen to or" + + " above thresholdHigh. When monitorType is gauge, notifyHigh, notifyLow or both must be true.", + label = "gauge") private boolean notifyLow; - /** - * Value for the gauge's high threshold (gauge monitor only). - */ - @UriParam(label = "gauge") + @UriParam(description = "The high threshold of the gauge monitor, converted to the type of the observed attribute. It " + + "must not be lower than thresholdLow. Required when monitorType is gauge.", + label = "gauge") private Double thresholdHigh; - /** - * Value for the gauge's low threshold (gauge monitor only). - */ - @UriParam(label = "gauge") + @UriParam(description = "The low threshold of the gauge monitor, converted to the type of the observed attribute. It " + + "must not be higher than thresholdHigh. Required when monitorType is gauge.", + label = "gauge") private Double thresholdLow; - /** - * If true, will fire a notification when the string attribute differs from the string to compare (string monitor or - * consumer). By default the consumer will notify match if observed attribute and string to compare has been - * configured. - */ - @UriParam(label = "consumer,string") + @UriParam(description = "Whether to receive a notification when the value of the observed attribute differs from " + + "stringToCompare. With monitorType string, the string monitor sends one each time the value " + + "starts to differ. Without monitorType, the consumer then receives the attribute changes whose " + + "new value differs from stringToCompare, instead of those whose new value matches it.", + label = "consumer,string") private boolean notifyDiffer; - /** - * If true, will fire a notification when the string attribute matches the string to compare (string monitor or - * consumer). By default the consumer will notify match if observed attribute and string to compare has been - * configured. - */ - @UriParam(label = "consumer,string") + @UriParam(description = "Whether the string monitor sends a notification each time the value of the observed attribute " + + "starts to match stringToCompare. When monitorType is string, notifyMatch, notifyDiffer or both " + + "must be true. Without monitorType this option is not used: the consumer receives the matching " + + "attribute changes unless notifyDiffer is true.", + label = "consumer,string") private boolean notifyMatch; - /** - * Value for attribute to compare (string monitor or consumer). By default the consumer will notify match if - * observed attribute and string to compare has been configured. - */ - @UriParam(label = "consumer,string") + @UriParam(description = "The text that the value of the observed attribute is compared with. Required when monitorType " + + "is string. Without monitorType, the consumer compares it with the new value of each " + + "AttributeChangeNotification of the observedAttribute (the text null matches a null value), and " + + "receives every change of the attribute when this option is not set.", + label = "consumer,string") private String stringToCompare; - /** - * Format for the message body. Either "xml" or "raw". If xml, the notification is serialized to xml. If raw, then - * the raw java object is set as the body. - */ - @UriParam(defaultValue = "xml", enums = "xml,raw") + @UriParam(description = "The format of the message body: xml for the notification as XML text, as defined by the " + + "notifications.xsd schema of camel-jmx, or raw for the javax.management.Notification object.", + defaultValue = "xml", enums = "xml,raw") private String format = "xml"; - /** - * Credentials for making a remote connection - */ - @UriParam(label = "security", security = "secret") + @UriParam(description = "The user name to authenticate with on a remote MBean server. The consumer passes user and " + + "password to the JMX connector as its credentials. Not used for the platform MBean server.", + label = "security", security = "secret") private String user; - /** - * Credentials for making a remote connection - */ - @UriParam(label = "security", security = "secret") + @UriParam(description = "The password to authenticate with on a remote MBean server. The consumer passes user and " + + "password to the JMX connector as its credentials. Not used for the platform MBean server.", + label = "security", security = "secret") private String password; - /** - * Reference to a bean that implements the NotificationFilter. - */ - @UriParam(label = "advanced") + @UriParam(description = "A javax.management.NotificationFilter that selects the notifications to receive. It replaces " + + "the filter that the consumer builds from observedAttribute and stringToCompare, and with " + + "monitorType it selects among the notifications of the monitor. A remote MBean server receives " + + "the filter serialized and applies it itself, so its class must be on the class path of that " + + "server.", + label = "advanced") private NotificationFilter notificationFilter; - /** - * Value to handback to the listener when a notification is received. This value will be put in the message header - * with the key {@link JMXConstants#JMX_HANDBACK}. - */ - @UriParam(label = "advanced") + @UriParam(description = "An object that the MBean server hands back with each notification, which the consumer puts in " + + "the jmx.handback header. With monitorType this option is not used, and the header holds the " + + "monitor MBean instead.", + label = "advanced") private Object handback; - /** - * If true the consumer will throw an exception if unable to establish the JMX connection upon startup. If false, - * the consumer will attempt to establish the JMX connection every 'x' seconds until the connection is made -- where - * 'x' is the configured reconnectionDelay - */ - @UriParam(label = "advanced", defaultValue = "true") + @UriParam(description = "Whether the consumer fails to start when it cannot connect to a remote MBean server. If false, " + + "the consumer logs a warning and tries to connect again every reconnectDelay seconds until it " + + "succeeds.", + label = "advanced", defaultValue = "true") private boolean testConnectionOnStartup = true; - /** - * If true the consumer will attempt to reconnect to the JMX server when any connection failure occurs. The consumer - * will attempt to re-establish the JMX connection every 'x' seconds until the connection is made-- where 'x' is the - * configured reconnectionDelay - */ - @UriParam(label = "advanced") + @UriParam(description = "Whether the consumer connects again to a remote MBean server when the connection is closed or " + + "fails, or notifications are lost. It tries every reconnectDelay seconds until it succeeds. When" + + " the JMX connector opens a new connection by itself, the consumer registers its listener again " + + "on that connection.", + label = "advanced") private boolean reconnectOnConnectionFailure; - /** - * The number of seconds to wait before attempting to retry establishment of the initial connection or attempt to - * reconnect a lost connection - */ - @UriParam(label = "advanced", defaultValue = "10") + @UriParam(description = "The number of seconds to wait before the next attempt to connect to a remote MBean server: at " + + "startup when testConnectionOnStartup is false, and after a lost connection when " + + "reconnectOnConnectionFailure is true.", + label = "advanced", defaultValue = "10") private int reconnectDelay = 10; - /** - * Properties for the object name. These values will be used if the objectName param is not set - */ - @UriParam(label = "advanced", prefix = "key.", multiValue = true) + @UriParam(description = "The key properties of the ObjectName of the MBean to listen to, for example key.type=Threading " + + "for the ObjectName java.lang:type=Threading. Set either this option or the objectName option, " + + "not both.", + label = "advanced", prefix = "key.", multiValue = true) private Map<String, String> objectProperties; - /** - * To use a custom shared thread pool for the consumers. By default each consume has their own thread-pool to - * process and route notifications. - */ - @UriParam(label = "advanced") + @UriParam(description = "A shared thread pool that routes the notifications of the consumers that use it. If not set, " + + "each consumer creates its own single-threaded pool, which routes its notifications one at a " + + "time in the order they arrive.", + label = "advanced") private ExecutorService executorService; /** diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index f75da7cacfc9..1ac86a19bd1b 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -2991,7 +2991,8 @@ public interface ComponentsBuilderFactory { } /** * JMX (camel-jmx) - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean server, + * or of a JMX monitor that observes an MBean attribute. * * Category: monitoring * Since: 2.6 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JmxComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JmxComponentBuilderFactory.java index 371653934869..853308b5f2c8 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JmxComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JmxComponentBuilderFactory.java @@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.jmx.JMXComponent; /** - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean server, or + * of a JMX monitor that observes an MBean attribute. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +34,8 @@ public interface JmxComponentBuilderFactory { /** * JMX (camel-jmx) - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean server, + * or of a JMX monitor that observes an MBean attribute. * * Category: monitoring * Since: 2.6 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index 88dc0038939a..431fdbd451d1 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -2393,7 +2393,8 @@ public class EndpointHeaderBuilders { } /** * JMX (camel-jmx) - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean server, + * or of a JMX monitor that observes an MBean attribute. * * Category: monitoring * Since: 2.6 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 80625f1e94b7..e2785c1d536c 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -9860,7 +9860,8 @@ public class StaticEndpointBuilders { } /** * JMX (camel-jmx) - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean server, + * or of a JMX monitor that observes an MBean attribute. * * Category: monitoring * Since: 2.6 @@ -9869,8 +9870,10 @@ public class StaticEndpointBuilders { * Syntax: <code>jmx:serverURL</code> * * Path parameter: serverURL - * Server url comes from the remaining endpoint. Use platform to connect to - * local JVM. + * The MBean server to connect to: platform for the platform MBean server of + * the JVM that runs Camel, or the JMX service URL of a remote MBean server, + * for example service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi. The + * monitorType option works only with platform. * * @param path serverURL * @return the dsl builder @@ -9880,7 +9883,8 @@ public class StaticEndpointBuilders { } /** * JMX (camel-jmx) - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean server, + * or of a JMX monitor that observes an MBean attribute. * * Category: monitoring * Since: 2.6 @@ -9889,8 +9893,10 @@ public class StaticEndpointBuilders { * Syntax: <code>jmx:serverURL</code> * * Path parameter: serverURL - * Server url comes from the remaining endpoint. Use platform to connect to - * local JVM. + * The MBean server to connect to: platform for the platform MBean server of + * the JVM that runs Camel, or the JMX service URL of a remote MBean server, + * for example service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi. The + * monitorType option works only with platform. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JMXEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JMXEndpointBuilderFactory.java index 49004750aaa1..3afb908b5227 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JMXEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JMXEndpointBuilderFactory.java @@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean server, or + * of a JMX monitor that observes an MBean attribute. * * Generated by camel build tools - do NOT edit this file! */ @@ -45,9 +46,9 @@ public interface JMXEndpointBuilderFactory { } /** - * Format for the message body. Either xml or raw. If xml, the - * notification is serialized to xml. If raw, then the raw java object - * is set as the body. + * The format of the message body: xml for the notification as XML text, + * as defined by the notifications.xsd schema of camel-jmx, or raw for + * the javax.management.Notification object. * * The option is a: <code>java.lang.String</code> type. * @@ -62,8 +63,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The frequency to poll the bean to check the monitor (monitor types - * only). + * The period at which the monitor reads the value of the observed + * attribute (the granularity period of the JMX monitor). Only used with + * monitorType. * * The option is a: <code>long</code> type. * @@ -78,8 +80,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The frequency to poll the bean to check the monitor (monitor types - * only). + * The period at which the monitor reads the value of the observed + * attribute (the granularity period of the JMX monitor). Only used with + * monitorType. * * The option will be converted to a <code>long</code> type. * @@ -94,8 +97,12 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The type of monitor to create. One of string, gauge, counter (monitor - * types only). + * The type of the JMX monitor to create: counter (CounterMonitor), + * gauge (GaugeMonitor) or string (StringMonitor). If set, the consumer + * registers a monitor MBean on the platform MBean server that observes + * the observedAttribute of the MBean, and receives the notifications of + * the monitor instead of those of the MBean. Only supported when + * serverURL is platform. * * The option is a: <code>java.lang.String</code> type. * @@ -109,7 +116,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The domain for the mbean you're connecting to. + * The domain of the ObjectName of the MBean to listen to, for example + * java.lang. With monitorType, the consumer also registers its monitor + * MBean in this domain. * * The option is a: <code>java.lang.String</code> type. * @@ -124,8 +133,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The name key for the mbean you're connecting to. This value is - * mutually exclusive with the object properties that get passed. + * The value of the name key of the ObjectName of the MBean to listen + * to: the consumer uses the ObjectName objectDomain:name=objectName. + * Set either this option or the objectProperties option, not both. * * The option is a: <code>java.lang.String</code> type. * @@ -139,7 +149,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The attribute to observe for the monitor bean or consumer. + * The name of the MBean attribute to observe. With monitorType it is + * required, and the monitor observes this attribute. Without + * monitorType and without notificationFilter, the consumer receives + * only the AttributeChangeNotifications of this attribute, selected + * further by stringToCompare. * * The option is a: <code>java.lang.String</code> type. * @@ -153,8 +167,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Initial threshold for the monitor. The value must exceed this before - * notifications are fired (counter monitor only). + * The initial threshold of the counter monitor, which sends a + * notification when the counter reaches or exceeds the threshold. The + * value is converted to the type of the observed attribute, which must + * be an integer type. If not set, the threshold is 0. Only used when + * monitorType is counter. * * The option is a: <code>int</code> type. * @@ -168,8 +185,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Initial threshold for the monitor. The value must exceed this before - * notifications are fired (counter monitor only). + * The initial threshold of the counter monitor, which sends a + * notification when the counter reaches or exceeds the threshold. The + * value is converted to the type of the observed attribute, which must + * be an integer type. If not set, the threshold is 0. Only used when + * monitorType is counter. * * The option will be converted to a <code>int</code> type. * @@ -183,8 +203,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The value at which the counter is reset to zero (counter monitor - * only). + * The value at which the observed counter wraps around to zero. The + * counter monitor sets the threshold back to initThreshold when it + * exceeds this value, and in difference mode adds it to a negative + * difference. If not set (0), the counter is taken not to wrap around. + * Only used when monitorType is counter. * * The option is a: <code>int</code> type. * @@ -198,8 +221,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The value at which the counter is reset to zero (counter monitor - * only). + * The value at which the observed counter wraps around to zero. The + * counter monitor sets the threshold back to initThreshold when it + * exceeds this value, and in difference mode adds it to a negative + * difference. If not set (0), the counter is taken not to wrap around. + * Only used when monitorType is counter. * * The option will be converted to a <code>int</code> type. * @@ -213,8 +239,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The amount to increment the threshold after it's been exceeded - * (counter monitor only). + * The value that the counter monitor adds to the threshold each time + * the counter reaches it, so that it sends a notification each time the + * counter grows by this value. If not set (0), the threshold does not + * change. Only used when monitorType is counter. * * The option is a: <code>int</code> type. * @@ -228,8 +256,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The amount to increment the threshold after it's been exceeded - * (counter monitor only). + * The value that the counter monitor adds to the threshold each time + * the counter reaches it, so that it sends a notification each time the + * counter grows by this value. If not set (0), the threshold does not + * change. Only used when monitorType is counter. * * The option will be converted to a <code>int</code> type. * @@ -243,9 +273,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, then the value reported in the notification is the - * difference from the threshold as opposed to the value itself (counter - * and gauge monitor only). + * Whether the counter or gauge monitor compares the difference between + * two successive observations of the attribute with the thresholds, + * instead of the value of the attribute itself. Only used when + * monitorType is counter or gauge. * * The option is a: <code>boolean</code> type. * @@ -260,9 +291,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, then the value reported in the notification is the - * difference from the threshold as opposed to the value itself (counter - * and gauge monitor only). + * Whether the counter or gauge monitor compares the difference between + * two successive observations of the attribute with the thresholds, + * instead of the value of the attribute itself. Only used when + * monitorType is counter or gauge. * * The option will be converted to a <code>boolean</code> type. * @@ -277,8 +309,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, the gauge will fire a notification when the high threshold - * is exceeded (gauge monitor only). + * Whether the gauge monitor sends a notification when the observed + * value rises to or above thresholdHigh. After that it sends the next + * high notification only once the value has fallen to or below + * thresholdLow. When monitorType is gauge, notifyHigh, notifyLow or + * both must be true. * * The option is a: <code>boolean</code> type. * @@ -293,8 +328,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, the gauge will fire a notification when the high threshold - * is exceeded (gauge monitor only). + * Whether the gauge monitor sends a notification when the observed + * value rises to or above thresholdHigh. After that it sends the next + * high notification only once the value has fallen to or below + * thresholdLow. When monitorType is gauge, notifyHigh, notifyLow or + * both must be true. * * The option will be converted to a <code>boolean</code> type. * @@ -309,8 +347,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, the gauge will fire a notification when the low threshold is - * exceeded (gauge monitor only). + * Whether the gauge monitor sends a notification when the observed + * value falls to or below thresholdLow. After that it sends the next + * low notification only once the value has risen to or above + * thresholdHigh. When monitorType is gauge, notifyHigh, notifyLow or + * both must be true. * * The option is a: <code>boolean</code> type. * @@ -325,8 +366,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, the gauge will fire a notification when the low threshold is - * exceeded (gauge monitor only). + * Whether the gauge monitor sends a notification when the observed + * value falls to or below thresholdLow. After that it sends the next + * low notification only once the value has risen to or above + * thresholdHigh. When monitorType is gauge, notifyHigh, notifyLow or + * both must be true. * * The option will be converted to a <code>boolean</code> type. * @@ -341,7 +385,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Value for the gauge's high threshold (gauge monitor only). + * The high threshold of the gauge monitor, converted to the type of the + * observed attribute. It must not be lower than thresholdLow. Required + * when monitorType is gauge. * * The option is a: <code>java.lang.Double</code> type. * @@ -355,7 +401,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Value for the gauge's high threshold (gauge monitor only). + * The high threshold of the gauge monitor, converted to the type of the + * observed attribute. It must not be lower than thresholdLow. Required + * when monitorType is gauge. * * The option will be converted to a <code>java.lang.Double</code> type. * @@ -369,7 +417,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Value for the gauge's low threshold (gauge monitor only). + * The low threshold of the gauge monitor, converted to the type of the + * observed attribute. It must not be higher than thresholdHigh. + * Required when monitorType is gauge. * * The option is a: <code>java.lang.Double</code> type. * @@ -383,7 +433,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Value for the gauge's low threshold (gauge monitor only). + * The low threshold of the gauge monitor, converted to the type of the + * observed attribute. It must not be higher than thresholdHigh. + * Required when monitorType is gauge. * * The option will be converted to a <code>java.lang.Double</code> type. * @@ -397,7 +449,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Credentials for making a remote connection. + * The password to authenticate with on a remote MBean server. The + * consumer passes user and password to the JMX connector as its + * credentials. Not used for the platform MBean server. * * The option is a: <code>java.lang.String</code> type. * @@ -411,7 +465,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Credentials for making a remote connection. + * The user name to authenticate with on a remote MBean server. The + * consumer passes user and password to the JMX connector as its + * credentials. Not used for the platform MBean server. * * The option is a: <code>java.lang.String</code> type. * @@ -425,10 +481,12 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, will fire a notification when the string attribute differs - * from the string to compare (string monitor or consumer). By default - * the consumer will notify match if observed attribute and string to - * compare has been configured. + * Whether to receive a notification when the value of the observed + * attribute differs from stringToCompare. With monitorType string, the + * string monitor sends one each time the value starts to differ. + * Without monitorType, the consumer then receives the attribute changes + * whose new value differs from stringToCompare, instead of those whose + * new value matches it. * * The option is a: <code>boolean</code> type. * @@ -443,10 +501,12 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, will fire a notification when the string attribute differs - * from the string to compare (string monitor or consumer). By default - * the consumer will notify match if observed attribute and string to - * compare has been configured. + * Whether to receive a notification when the value of the observed + * attribute differs from stringToCompare. With monitorType string, the + * string monitor sends one each time the value starts to differ. + * Without monitorType, the consumer then receives the attribute changes + * whose new value differs from stringToCompare, instead of those whose + * new value matches it. * * The option will be converted to a <code>boolean</code> type. * @@ -461,10 +521,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, will fire a notification when the string attribute matches - * the string to compare (string monitor or consumer). By default the - * consumer will notify match if observed attribute and string to - * compare has been configured. + * Whether the string monitor sends a notification each time the value + * of the observed attribute starts to match stringToCompare. When + * monitorType is string, notifyMatch, notifyDiffer or both must be + * true. Without monitorType this option is not used: the consumer + * receives the matching attribute changes unless notifyDiffer is true. * * The option is a: <code>boolean</code> type. * @@ -479,10 +540,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true, will fire a notification when the string attribute matches - * the string to compare (string monitor or consumer). By default the - * consumer will notify match if observed attribute and string to - * compare has been configured. + * Whether the string monitor sends a notification each time the value + * of the observed attribute starts to match stringToCompare. When + * monitorType is string, notifyMatch, notifyDiffer or both must be + * true. Without monitorType this option is not used: the consumer + * receives the matching attribute changes unless notifyDiffer is true. * * The option will be converted to a <code>boolean</code> type. * @@ -497,9 +559,12 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Value for attribute to compare (string monitor or consumer). By - * default the consumer will notify match if observed attribute and - * string to compare has been configured. + * The text that the value of the observed attribute is compared with. + * Required when monitorType is string. Without monitorType, the + * consumer compares it with the new value of each + * AttributeChangeNotification of the observedAttribute (the text null + * matches a null value), and receives every change of the attribute + * when this option is not set. * * The option is a: <code>java.lang.String</code> type. * @@ -642,8 +707,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * To use a custom shared thread pool for the consumers. By default each - * consume has their own thread-pool to process and route notifications. + * A shared thread pool that routes the notifications of the consumers + * that use it. If not set, each consumer creates its own + * single-threaded pool, which routes its notifications one at a time in + * the order they arrive. * * The option is a: <code>java.util.concurrent.ExecutorService</code> * type. @@ -658,8 +725,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * To use a custom shared thread pool for the consumers. By default each - * consume has their own thread-pool to process and route notifications. + * A shared thread pool that routes the notifications of the consumers + * that use it. If not set, each consumer creates its own + * single-threaded pool, which routes its notifications one at a time in + * the order they arrive. * * The option will be converted to a * <code>java.util.concurrent.ExecutorService</code> type. @@ -674,9 +743,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Value to handback to the listener when a notification is received. - * This value will be put in the message header with the key - * JMXConstants#JMX_HANDBACK. + * An object that the MBean server hands back with each notification, + * which the consumer puts in the jmx.handback header. With monitorType + * this option is not used, and the header holds the monitor MBean + * instead. * * The option is a: <code>java.lang.Object</code> type. * @@ -690,9 +760,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Value to handback to the listener when a notification is received. - * This value will be put in the message header with the key - * JMXConstants#JMX_HANDBACK. + * An object that the MBean server hands back with each notification, + * which the consumer puts in the jmx.handback header. With monitorType + * this option is not used, and the header holds the monitor MBean + * instead. * * The option will be converted to a <code>java.lang.Object</code> type. * @@ -706,7 +777,12 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Reference to a bean that implements the NotificationFilter. + * A javax.management.NotificationFilter that selects the notifications + * to receive. It replaces the filter that the consumer builds from + * observedAttribute and stringToCompare, and with monitorType it + * selects among the notifications of the monitor. A remote MBean server + * receives the filter serialized and applies it itself, so its class + * must be on the class path of that server. * * The option is a: <code>javax.management.NotificationFilter</code> * type. @@ -721,7 +797,12 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Reference to a bean that implements the NotificationFilter. + * A javax.management.NotificationFilter that selects the notifications + * to receive. It replaces the filter that the consumer builds from + * observedAttribute and stringToCompare, and with monitorType it + * selects among the notifications of the monitor. A remote MBean server + * receives the filter serialized and applies it itself, so its class + * must be on the class path of that server. * * The option will be converted to a * <code>javax.management.NotificationFilter</code> type. @@ -736,9 +817,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Properties for the object name. These values will be used if the - * objectName param is not set. This is a multi-value option with - * prefix: key. + * The key properties of the ObjectName of the MBean to listen to, for + * example key.type=Threading for the ObjectName + * java.lang:type=Threading. Set either this option or the objectName + * option, not both. This is a multi-value option with prefix: key. * * The option is a: <code>java.util.Map<java.lang.String, * java.lang.String></code> type. @@ -757,9 +839,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * Properties for the object name. These values will be used if the - * objectName param is not set. This is a multi-value option with - * prefix: key. + * The key properties of the ObjectName of the MBean to listen to, for + * example key.type=Threading for the ObjectName + * java.lang:type=Threading. Set either this option or the objectName + * option, not both. This is a multi-value option with prefix: key. * * The option is a: <code>java.util.Map<java.lang.String, * java.lang.String></code> type. @@ -777,9 +860,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The number of seconds to wait before attempting to retry - * establishment of the initial connection or attempt to reconnect a - * lost connection. + * The number of seconds to wait before the next attempt to connect to a + * remote MBean server: at startup when testConnectionOnStartup is + * false, and after a lost connection when reconnectOnConnectionFailure + * is true. * * The option is a: <code>int</code> type. * @@ -794,9 +878,10 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * The number of seconds to wait before attempting to retry - * establishment of the initial connection or attempt to reconnect a - * lost connection. + * The number of seconds to wait before the next attempt to connect to a + * remote MBean server: at startup when testConnectionOnStartup is + * false, and after a lost connection when reconnectOnConnectionFailure + * is true. * * The option will be converted to a <code>int</code> type. * @@ -811,10 +896,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true the consumer will attempt to reconnect to the JMX server when - * any connection failure occurs. The consumer will attempt to - * re-establish the JMX connection every 'x' seconds until the - * connection is made-- where 'x' is the configured reconnectionDelay. + * Whether the consumer connects again to a remote MBean server when the + * connection is closed or fails, or notifications are lost. It tries + * every reconnectDelay seconds until it succeeds. When the JMX + * connector opens a new connection by itself, the consumer registers + * its listener again on that connection. * * The option is a: <code>boolean</code> type. * @@ -829,10 +915,11 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true the consumer will attempt to reconnect to the JMX server when - * any connection failure occurs. The consumer will attempt to - * re-establish the JMX connection every 'x' seconds until the - * connection is made-- where 'x' is the configured reconnectionDelay. + * Whether the consumer connects again to a remote MBean server when the + * connection is closed or fails, or notifications are lost. It tries + * every reconnectDelay seconds until it succeeds. When the JMX + * connector opens a new connection by itself, the consumer registers + * its listener again on that connection. * * The option will be converted to a <code>boolean</code> type. * @@ -847,10 +934,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true the consumer will throw an exception if unable to establish - * the JMX connection upon startup. If false, the consumer will attempt - * to establish the JMX connection every 'x' seconds until the - * connection is made -- where 'x' is the configured reconnectionDelay. + * Whether the consumer fails to start when it cannot connect to a + * remote MBean server. If false, the consumer logs a warning and tries + * to connect again every reconnectDelay seconds until it succeeds. * * The option is a: <code>boolean</code> type. * @@ -865,10 +951,9 @@ public interface JMXEndpointBuilderFactory { return this; } /** - * If true the consumer will throw an exception if unable to establish - * the JMX connection upon startup. If false, the consumer will attempt - * to establish the JMX connection every 'x' seconds until the - * connection is made -- where 'x' is the configured reconnectionDelay. + * Whether the consumer fails to start when it cannot connect to a + * remote MBean server. If false, the consumer logs a warning and tries + * to connect again every reconnectDelay seconds until it succeeds. * * The option will be converted to a <code>boolean</code> type. * @@ -887,7 +972,8 @@ public interface JMXEndpointBuilderFactory { public interface JMXBuilders { /** * JMX (camel-jmx) - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean + * server, or of a JMX monitor that observes an MBean attribute. * * Category: monitoring * Since: 2.6 @@ -900,7 +986,8 @@ public interface JMXEndpointBuilderFactory { } /** * JMX (camel-jmx) - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean + * server, or of a JMX monitor that observes an MBean attribute. * * Category: monitoring * Since: 2.6 @@ -909,8 +996,11 @@ public interface JMXEndpointBuilderFactory { * Syntax: <code>jmx:serverURL</code> * * Path parameter: serverURL - * Server url comes from the remaining endpoint. Use platform to connect - * to local JVM. + * The MBean server to connect to: platform for the platform MBean + * server of the JVM that runs Camel, or the JMX service URL of a remote + * MBean server, for example + * service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi. The monitorType + * option works only with platform. * * @param path serverURL * @return the dsl builder @@ -920,7 +1010,8 @@ public interface JMXEndpointBuilderFactory { } /** * JMX (camel-jmx) - * Receive JMX notifications. + * Receive the notifications of an MBean on a local or remote MBean + * server, or of a JMX monitor that observes an MBean attribute. * * Category: monitoring * Since: 2.6 @@ -929,8 +1020,11 @@ public interface JMXEndpointBuilderFactory { * Syntax: <code>jmx:serverURL</code> * * Path parameter: serverURL - * Server url comes from the remaining endpoint. Use platform to connect - * to local JVM. + * The MBean server to connect to: platform for the platform MBean + * server of the JVM that runs Camel, or the JMX service URL of a remote + * MBean server, for example + * service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi. The monitorType + * option works only with platform. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -953,7 +1047,9 @@ public interface JMXEndpointBuilderFactory { public static final JMXHeaderNameBuilder INSTANCE = new JMXHeaderNameBuilder(); /** - * The handback. + * The handback object that the consumer registered with its + * notification listener: the value of the handback option, or the + * monitor MBean when monitorType is set. * * The option is a: {@code Object} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index efb05a5f3bcb..b4417f3a1835 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -234,7 +234,7 @@ or removes its row. | camel-jgroups-raft | jgroups-raft | | | camel-jira | jira | yes | | camel-jms | jms | | -| camel-jmx | jmx | | +| camel-jmx | jmx | yes | | camel-jolt | jolt | | | camel-jooq | jooq | yes | | camel-jpa | jpa | |
