【发布时间】:2014-07-16 16:32:57
【问题描述】:
我正在尝试使用 wlst 监控域中托管服务器上的部署状态。
我正在使用 Weblogic 10.3
这是我目前所拥有的:
domainRuntime()
applnRtStEuntimeBean = cmo.getAppRuntimeStateRuntime()
servers=domainRuntimeService.getServerRuntimes()
for server in servers:
serverName = server.getName()
applns = server.getApplicationRuntimes();
for appln in applns:
print 'Application Name #', appln.getApplicationName()
print 'Applican Current State #', applnRtStEuntimeBean.getCurrentState(appName,serverName)
print 'Applican Intended State #', applnRtStEuntimeBean.getIntendedState(appName)
这给了我所有应用程序的当前状态,无论其“类型”如何。 有没有一种方法可以使用 wlst 按类型过滤应用程序?
例如,我只想检查“企业应用程序”和“Web 应用程序”的状态并忽略所有“库”
我查看了 MBeans Java 文档,但没有看到任何可以让我了解应用程序类型的内容。
在管理控制台的“部署”页面中列出了应用程序名称、类型、运行状况和状态供您参考。
感谢您的反馈/建议/cmets!
【问题讨论】:
标签: deployment monitoring weblogic-10.x wlst