
monitor.monitoringResourcesStatsPage.inc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-common Show documentation
Show all versions of console-common Show documentation
This bundle contains common code that may be shared across plugins.
The newest version!
#include "/common/shared/commonHandlers.inc"
$attribute{monitorList} FirstItem=>$attribute{firstVal});
if(!#{viewVal}) {
setAttribute(key="viewVal" value="#{firstVal}");
}
if(!#{appVal}) {
setAttribute(key="appVal" value="");
}
}
if("#{pageSession.isMonitoringOff}") {
setPageSessionAttribute(key="displayPropSection" value="#{false}");
}
}
if("!#{requestScope.isInstanceRunning}"){
setPageSessionAttribute(key="displayPropSection" value="#{false}");
setAttribute(key="instanceRunningAlert" value="#{true}");
}
calculateHelpUrl(pluginId="#{pluginId}", helpKey: "$resource{help_web.monitorResources}", url="#{olhLink}");
/>
#include "/common/shared/nameSection.inc"
$page{poolId});
/>
"
//To provide the support for application based pool monitoring.
$attribute{hasApp});
if(#{hasApp}) {
listAdd(list="#{resAppsList}" value="#{poolApp}" result=>$attribute{resAppsList});
}
}
setAttribute(key="resAppsSize" value="#{resAppsList.size()}");
setAttribute(key="zero" value="$int{0}");
if(#{resAppsSize} > #{zero}) {
setAttribute(key="hasResApps" value="$boolean{true}");
}
if(#{resAppsSize} = #{zero}) {
setAttribute(key="hasResApps" value="$boolean{false}");
}
addEmptyFirstElement(in="#{resAppsList}" out="#{resAppsList}");
gf.convertListToOptionArray(list="#{resAppsList}" optionArray=>$attribute{resApps});
/>
$attribute{poolComp});
setAttribute(key="viewVal" value="#{poolComp.selected}");
if ("$pageSession{encodedInstanceName}") {
setAttribute(key="instanceName" value="$pageSession{encodedInstanceName}");
}
if ("$pageSession{encodedClusterName}") {
setAttribute(key="clusterName" value="$pageSession{encodedClusterName}");
}
gf.navigate(page="#{pageSession.selfPage}");
/>
$page{tableId});
/>
$attribute{isJdbcPool});
if (#{isJdbcPool}) {
if(#{appVal}) {
setAttribute(key="jdbcHeader" value="#{viewVal}/#{appVal}");
}
if(!#{appVal}) {
setAttribute(key="jdbcHeader" value="#{viewVal}");
}
getStats(endpoint="#{pageSession.monitorURL}/resources/#{viewVal}/#{appVal}", result=>$attribute{jdbcStatsList} hasStats=>$attribute{hasStatsJdbc});
}
if (!#{isJdbcPool}) {
setAttribute(key="hasStatsJdbc" value="#{false}");
}
/>
#include "/common/monitor/monitoringTableRows.inc"
"
$attribute{isConnectorPool});
if(#{appVal}) {
setAttribute(key="connectorHeader" value="#{viewVal}/#{appVal}");
}
if(!#{appVal}) {
setAttribute(key="connectorHeader" value="#{viewVal}");
}
if (#{isConnectorPool}) {
getStats(endpoint="#{pageSession.monitorURL}/resources/#{viewVal}/#{appVal}", result=>$attribute{connectionPoolStatsList} hasStats=>$attribute{hasStatsConnectionPool});
}
if (!#{isConnectorPool}) {
setAttribute(key="hasStatsConnectionPool" value="#{false}");
}
/>
#include "/common/monitor/monitoringTableRows.inc"
"
© 2015 - 2025 Weber Informatics LLC | Privacy Policy