此内容没有您所选择的语言版本。

9.8. Methods Available to Proxy Resources


The ProxyFactory classes provide shortcuts for a lot of common resource management tasks, such as viewing monitoring data, running operations, or changing the resource or plug-in configuration. These methods are not in the regular API, but they can be used both by the JBoss ON CLI and by JBoss ON server-side scripts.
The shortcuts and methods available through ProxyFactory are different, depending on the resource type. Methods are only available if the resource type supports that functional area.
This section lists the three most common resource types:
TIP
Use tab-complete in the interactive CLI to find the specific methods available for a resource type or to get the method signatures for individual methods.
Using proxy resources is covered in Section 10.2, “Using Resource Proxies”.
Expand
Table 9.1. Proxy Methods for Platforms
Information Methods
measurements Displays a pretty-print list of the available metrics, current values, and description of all measurements for the platform resource.
operations Lists the available operations for the resource type.
Table 9.1. Proxy Methods for Platforms
Shortcut Metric Methods
OSName OSVersion architecture createdDate
description distributionName distributionVersion freeMemory
freeSwapSpace hostname idle totalMemory
systemLoad totalSwapSpace usedSwapSpace usedMemory
userLoad modifiedDate waitLoad version
Table 9.1. Proxy Methods for Platforms
Shortcut Resource Entry Methods
id (inventory ID number) resourceType name (inventory name)
Table 9.1. Proxy Methods for Platforms
Shortcut Operation Methods
manualAutodiscovery cleanYumMetadataCache viewProcessList
Table 9.1. Proxy Methods for Platforms
Shortcut Configuration Methods
editPluginConfiguration() pluginConfiguration
pluginConfigurationDefinition
Table 9.1. Proxy Methods for Platforms
Shortcut Content Methods
contentTypes
Table 9.1. Proxy Methods for Platforms
Shortcut Inventory Methods
children
Table 9.1. Proxy Methods for Platforms
Method Signature
platform.getChild
ResourceClientProxy getChild(String)
Copy to Clipboard Toggle word wrap
platform.getMeasurement
Measurement getMeasurement(String)
Copy to Clipboard Toggle word wrap
platform.updatePluginConfiguration
PluginConfigurationUpdate updatePluginConfiguration(Configuration)
Copy to Clipboard Toggle word wrap
platform.toString
String toString()
Copy to Clipboard Toggle word wrap
Expand
Table 9.2. Proxy Methods for JBoss AS/EAP Servers
Information Methods
measurements Displays a pretty-print list of the available metrics, current values, and description of all measurements for the JBoss resource.
operations Lists the available operations for the resource type.
Table 9.2. Proxy Methods for JBoss AS/EAP Servers
Shortcut Metric Methods
JVMFreeMemory JVMMaxMemory JVMTotalMemory activeThreadCount
activeThreadGroupCount buildDate createdDate description
modifiedDate startDate totalTransactions totalTransactionsperMinute
transactionsCommitted transactionsCommittedperMinute transactionsRolledback transactionsRolledbackperMinute
partitionName versionName version
Table 9.2. Proxy Methods for JBoss AS/EAP Servers
Shortcut Resource Entry Methods
id (inventory ID number) resourceType name (inventory name)
Table 9.2. Proxy Methods for JBoss AS/EAP Servers
Shortcut Operation Methods
restart shutdown start
Table 9.2. Proxy Methods for JBoss AS/EAP Servers
Shortcut Configuration Methods
editPluginConfiguration() pluginConfiguration
pluginConfigurationDefinition
Table 9.2. Proxy Methods for JBoss AS/EAP Servers
Shortcut Content Methods
contentTypes
Table 9.2. Proxy Methods for JBoss AS/EAP Servers
Shortcut Inventory Methods
children
Table 9.2. Proxy Methods for JBoss AS/EAP Servers
Method Signature
jbossas.getChild
ResourceClientProxy getChild(String)
Copy to Clipboard Toggle word wrap
jbossas.getMeasurement
Measurement getMeasurement(String)
Copy to Clipboard Toggle word wrap
jbossas.updatePluginConfiguration
PluginConfigurationUpdate updatePluginConfiguration(Configuration)
Copy to Clipboard Toggle word wrap
jbossas.toString
String toString()
Copy to Clipboard Toggle word wrap
Expand
Table 9.3. Proxy Methods for Content Sources (EARs, WARs, JARs)
Information Methods
measurements Displays a pretty-print list of the available metrics, current values, and description of all measurements for the content resource.
operations Lists the available operations for the resource type.
Table 9.3. Proxy Methods for Content Sources (EARs, WARs, JARs)
Shortcut Metric Methods
createdDate modifiedDate description
path version exploded
Table 9.3. Proxy Methods for Content Sources (EARs, WARs, JARs)
Shortcut Resource Entry Methods
id (inventory ID number) resourceType name (inventory name)
Table 9.3. Proxy Methods for Content Sources (EARs, WARs, JARs)
Shortcut Operation Methods
revert
Table 9.3. Proxy Methods for Content Sources (EARs, WARs, JARs)
Shortcut Configuration Methods
editPluginConfiguration() pluginConfiguration
pluginConfigurationDefinition
Table 9.3. Proxy Methods for Content Sources (EARs, WARs, JARs)
Shortcut Content Methods
contentTypes backingContent
Table 9.3. Proxy Methods for Content Sources (EARs, WARs, JARs)
Shortcut Inventory Methods
children
Table 9.3. Proxy Methods for Content Sources (EARs, WARs, JARs)
Method Signature
content.getChild
ResourceClientProxy getChild(String)
Copy to Clipboard Toggle word wrap
content.getMeasurement
Measurement getMeasurement(String)
Copy to Clipboard Toggle word wrap
content.updatePluginConfiguration
PluginConfigurationUpdate updatePluginConfiguration(Configuration)
Copy to Clipboard Toggle word wrap
content.toString
String toString()
Copy to Clipboard Toggle word wrap
content.retrieveBackingContent
retrieveBackingContent(String fileName)
Copy to Clipboard Toggle word wrap
content.updateBackingContent
updateBackingContent(String filename, String displayVersion)
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat