jdbcRegistration.setRuntimeOnly(true); poolRegistration.setRuntimeOnly(true);
@Override @SuppressWarnings("deprecation") public void setRuntimeOnly(final boolean runtimeOnly) { deployments.setRuntimeOnly(runtimeOnly); subdeployments.setRuntimeOnly(runtimeOnly); }
@Override public void setRuntimeOnly(final boolean runtimeOnly) { deployments.setRuntimeOnly(runtimeOnly); subdeployments.setRuntimeOnly(runtimeOnly); }
@Override public void setRuntimeOnly(final boolean runtimeOnly) { deployments.setRuntimeOnly(runtimeOnly); subdeployments.setRuntimeOnly(runtimeOnly); }
@Override @SuppressWarnings("deprecation") public void setRuntimeOnly(final boolean runtimeOnly) { deployments.setRuntimeOnly(runtimeOnly); subdeployments.setRuntimeOnly(runtimeOnly); }
@Override public void setRuntimeOnly(boolean runtimeOnly) { delegate.setRuntimeOnly(runtimeOnly); }
@Override @SuppressWarnings("deprecation") public void setRuntimeOnly(boolean runtimeOnly) { getDelegate().setRuntimeOnly(runtimeOnly); }
@Override @SuppressWarnings("deprecation") public void setRuntimeOnly(boolean runtimeOnly) { getDelegate().setRuntimeOnly(runtimeOnly); }
@Override public void registerChildren(ManagementResourceRegistration registry) { super.registerChildren(registry); // TODO WFLY-5285 get rid of redundant .setRuntimeOnly once WFCORE-959 is integrated ManagementResourceRegistration securityRole = registry.registerSubModel(SecurityRoleDefinition.RUNTIME_INSTANCE); securityRole.setRuntimeOnly(true); } }
@Override public void registerChildren(ManagementResourceRegistration registry) { super.registerChildren(registry); // TODO WFLY-5285 get rid of redundant .setRuntimeOnly once WFCORE-959 is integrated ManagementResourceRegistration securityRole = registry.registerSubModel(SecurityRoleDefinition.RUNTIME_INSTANCE); securityRole.setRuntimeOnly(true); } }
jdbcRegistration.setRuntimeOnly(true); poolRegistration.setRuntimeOnly(true);
@Override public void start(StartContext context) throws StartException { ROOT_LOGGER.debugf("start PooledConnectionFactoryStatisticsService"); synchronized (POOL_STATISTICS) { ResourceAdapterDeployment raDeployment = injectedRADeployment.getValue(); CommonDeployment deployment = raDeployment.getDeployment(); StatisticsPlugin poolStats = deployment.getConnectionManagers()[0].getPool().getStatistics(); poolStats.setEnabled(statsEnabled); int poolStatsSize = poolStats.getNames().size(); if (poolStatsSize > 0) { if (registration != null) { if (poolStatsSize > 0) { if (registration.getSubModel(PathAddress.pathAddress(POOL_STATISTICS)) == null) { // TODO WFLY-5285 get rid of redundant .setRuntimeOnly once WFCORE-959 is integrated ManagementResourceRegistration poolRegistration = registration.registerSubModel(new StatisticsResourceDefinition(POOL_STATISTICS, DataSourcesSubsystemProviders.RESOURCE_NAME, poolStats)); poolRegistration.setRuntimeOnly(true); } } } } } }
@Override public void start(StartContext context) throws StartException { ROOT_LOGGER.debugf("start PooledConnectionFactoryStatisticsService"); synchronized (POOL_STATISTICS) { ResourceAdapterDeployment raDeployment = injectedRADeployment.getValue(); CommonDeployment deployment = raDeployment.getDeployment(); StatisticsPlugin poolStats = deployment.getConnectionManagers()[0].getPool().getStatistics(); poolStats.setEnabled(statsEnabled); int poolStatsSize = poolStats.getNames().size(); if (poolStatsSize > 0) { if (registration != null) { if (poolStatsSize > 0) { if (registration.getSubModel(PathAddress.pathAddress(POOL_STATISTICS)) == null) { // TODO WFLY-5285 get rid of redundant .setRuntimeOnly once WFCORE-959 is integrated ManagementResourceRegistration poolRegistration = registration.registerSubModel(new StatisticsResourceDefinition(POOL_STATISTICS, DataSourcesSubsystemProviders.RESOURCE_NAME, poolStats)); poolRegistration.setRuntimeOnly(true); } } } } } }
jdbcRegistration.setRuntimeOnly(true); jdbcRegistration.registerOperationHandler(Constants.CLEAR_STATISTICS, new ClearStatisticsHandler(jdbcStats)); poolRegistration.setRuntimeOnly(true); poolRegistration.registerOperationHandler(Constants.CLEAR_STATISTICS, new ClearStatisticsHandler(poolStats));