Package org.jboss.as.connector.subsystems.common.pool

Examples of org.jboss.as.connector.subsystems.common.pool.PoolStatisticsRuntimeAttributeReadHandler


                                        PoolMetrics.ParametrizedPoolMetricsHandler handler = new PoolMetrics.ParametrizedPoolMetricsHandler(raStats);
                                        for (AttributeDefinition attribute : StatisticsResourceDefinition.getAttributesFromPlugin(raStats)){
                                            raRegistration.registerMetric(attribute, handler);
                                        }
                                        //adding enable/disable for pool stats
                                        OperationStepHandler readHandler = new PoolStatisticsRuntimeAttributeReadHandler(raStats);
                                        OperationStepHandler writeHandler = new PoolStatisticsRuntimeAttributeWriteHandler(raStats);
                                        raRegistration.registerReadWriteAttribute(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_STATISTICS_ENABLED, readHandler, writeHandler);

                                    }
                                    if (poolStats.getNames().size() != 0 && raRegistration.getSubModel(PathAddress.pathAddress(peCD)) == null) {
View Full Code Here


        super.registerAttributes(resourceRegistration);
        for (AttributeDefinition attribute : getAttributesFromPlugin(plugin)) {
            resourceRegistration.registerMetric(attribute, new PoolMetrics.ParametrizedPoolMetricsHandler(plugin));
        }
        //adding enable/disable for pool stats
        OperationStepHandler readHandler = new PoolStatisticsRuntimeAttributeReadHandler(plugin);
        OperationStepHandler writeHandler = new PoolStatisticsRuntimeAttributeWriteHandler(plugin);
        resourceRegistration.registerReadWriteAttribute(org.jboss.as.connector.subsystems.common.pool.Constants.POOL_STATISTICS_ENABLED, readHandler, writeHandler);

    }
View Full Code Here

TOP

Related Classes of org.jboss.as.connector.subsystems.common.pool.PoolStatisticsRuntimeAttributeReadHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.