Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
6. Resource Configuration
- The plug-in configuration. In the web UI, this is called the connection setting; it is the information which the agent uses to discover and connect to the resource, such as a PID file path or a port number.Every resource has some kind of plug-in configuration.
- Resource configuration. Configuration properties are drawn from the configuration files for a resource, such as
.conf
or.xml
. The configuration files and properties that are exposed within JBoss ON are defined in the plug-in descriptor.Resource configuration is optional, and many resources do not support configuration editing or only expose a subset of possible properties.
Note
6.1. Viewing Current Configuration Link kopierenLink in die Zwischenablage kopiert!
get*ConfigurationDefinitionForResourceType
methods can display the descriptor-defined templates used for the resource type's configuration. These are the configuration properties available to every resource of that type.
Example 9. Viewing Plug-in Configuration for a Resource Type
propertyDefinitions
parameter contains the information about the configuration properties that can be set, including details about the configuration property setup. For example, for the event logs configuration:
logs=[id=11792, name=logs, config=Linux, group=Event Logs]
logs=[id=11792, name=logs, config=Linux, group=Event Logs]
metadataCacheTimeout=SimpleProperty[metadataCacheTimeout] (Type: INTEGER)(Group: Content)
metadataCacheTimeout=SimpleProperty[metadataCacheTimeout] (Type: INTEGER)(Group: Content)
Example 10. Viewing the Configuration Properties for the Resource Type
get*Configuration
methods.
Note
Example 11. Viewing a Resource's Configuration Settings
6.2. Changing Simple Configuration Properties Link kopierenLink in die Zwischenablage kopiert!
- Search for the resource.
- Create a configuration object.
- Set the new property value. The method to set the property value depends on the format of the property. In this case, it uses
setSimpleValue
since this is a simple property. For a simple property, the value is set by passing ('property','value'). - Run an update operation for the resource. For a resource configuration update, the method is
updateResourceConfiguration
. For a plug-in configuration update, it isupdatePluginConfiguration
.
Example 12. Changing a Simple Property