受管对象元数据
在属性表单中的配置库中维护有关节点(如操作系统平台和产品功能部件)的信息。当在节点上安装产品功能部件时,会添加新的属性设置。
WebSphere® Application Server 系统管理使用受管对象元数据属性,如下所示:
- 在管理控制台中显示节点版本
- 确保在较旧发行版的节点上未创建或设置新的配置类型或属性
- 确保在旧发行版的节点上未创建新的资源类型
- 确保在旧发行版的节点上未安装新的应用程序,这是因为旧的运行时无法支持新的应用程序
为 WebSphere Application Server 定义以下基本属性关键字:
com.ibm.websphere.baseProductVersion:安装的 WebSphere Application Server 的版本。
com.ibm.websphere.nodeOperatingSystem:节点运行所在的操作系统平台。
com.ibm.websphere.deployed.features:扩展概要文件的功能部件列表。功能部件的一个示例是管理控制台插件。
com.ibm.websphere.nodeSysplexName:z/OS® 操作系统上的综合系统名称。
下面是元数据属性值的示例。为了打印方便,com.ibm.websphere.deployed.features 元数据属性值被拆分为多行。![[AIX]](../images/aixlogo.gif)
![[Linux]](../images/linux.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
![[Windows]](../images/windows.gif)
![[IBM i]](../images/iseries.gif)
![[z/OS]](../images/ngzos.gif)
com.ibm.websphere.baseProductVersion=7.0.0.0
com.ibm.websphere.deployed.features=
com.ibm.ws.base_6.0.0.0,com.ibm.ws.j2ee_6.0.0.0,
com.ibm.ws.uddi_6.0.0.0,com.ibm.ws.wsgateway_6.0.0.0
![[AIX]](../images/aixlogo.gif)
com.ibm.websphere.nodeOperatingSystem=aix
![[Linux]](../images/linux.gif)
com.ibm.websphere.nodeOperatingSystem=linux
![[HP-UX]](../images/hpux.gif)
com.ibm.websphere.nodeOperatingSystem=hpux
![[Solaris]](../images/solaris.gif)
com.ibm.websphere.nodeOperatingSystem=solaris
![[Windows]](../images/windows.gif)
com.ibm.websphere.nodeOperatingSystem=windows
![[IBM i]](../images/iseries.gif)
com.ibm.websphere.nodeOperatingSystem=os400
![[z/OS]](../images/ngzos.gif)
com.ibm.websphere.nodeSysplexName=PLEX1
com.ibm.websphere.nodeOperatingSystem=os390
有关元数据属性的详细信息,请查看应用程序编程接口文档中的 ManagedObjectMetadataHelper 类。管理员可以通过 wsadmin 工具或 Application Server API 来查询受管对象元数据。还可以在节点安装属性管理控制台页面上查看这些元数据。此信息提供了有关 Application Server API 方法的详细信息。
accessor 类用于获取受管对象元数据属性。accessor 实例是通过它的工厂来创建的。使用 accessor 实例的 helper 类使查询基本元数据属性变得简单。这些类都是 Application Server API 文档中 com.ibm.websphere.management.metadata 包的一部分。这些类的特定名称为:
- com.ibm.websphere.management.metadata.ManagedObjectMetadataHelper
- com.ibm.websphere.management.metadata.ManagedObjectMetadataAccessor
- com.ibm.websphere.management.metadata.ManagedObjectMetadataAccessorFactory