Package org.jboss.jca.core.api.management

Examples of org.jboss.jca.core.api.management.ManagementRepository


                    final ServiceController<?> managementRepoService = context.getServiceRegistry().getService(
                            ConnectorServices.MANAGEMENT_REPOSISTORY_SERVICE);
                    if (managementRepoService != null) {
                        try {
                            final ManagementRepository repository = (ManagementRepository) managementRepoService.getValue();
                            final ModelNode result = new ModelNode();
                            if (repository.getDataSources() != null) {
                                for (DataSource ds : repository.getDataSources()) {
                                    if (jndiName.equalsIgnoreCase(ds.getJndiName())) {
                                        if (MAX_POOL_SIZE.equals(attributeName)) {
                                            result.set("" + ds.getPoolConfiguration().getMaxSize());
                                        }
                                        if (MIN_POOL_SIZE.equals(attributeName)) {
View Full Code Here


                    final ServiceController<?> managementRepoService = context.getServiceRegistry().getService(
                            ConnectorServices.MANAGEMENT_REPOSISTORY_SERVICE);
                    if (managementRepoService != null) {
                        try {
                            final ManagementRepository repository = (ManagementRepository) managementRepoService.getValue();
                            final ModelNode result = new ModelNode();
                            if (repository.getDataSources() != null) {
                                for (DataSource ds : repository.getDataSources()) {
                                    if (jndiName.equalsIgnoreCase(ds.getJndiName())) {
                                        if (MAX_POOL_SIZE.equals(attributeName)) {
                                            result.set("" + ds.getPoolConfiguration().getMaxSize());
                                        }
                                        if (MIN_POOL_SIZE.equals(attributeName)) {
View Full Code Here

                        final ServiceController<?> managementRepoService = runtimeCtx.getServiceRegistry().getService(
                                ConnectorServices.MANAGEMENT_REPOSISTORY_SERVICE);
                        if (managementRepoService != null) {
                            try {
                                final ManagementRepository repository = (ManagementRepository) managementRepoService.getValue();
                                if (repository.getDataSources() != null) {
                                    for (DataSource ds : repository.getDataSources()) {
                                        if (jndiName.equalsIgnoreCase(ds.getJndiName())) {
                                            if (MAX_POOL_SIZE.equals(parameterName)) {
                                                ds.getPoolConfiguration().setMaxSize(newValue.asInt());
                                            }
                                            if (MIN_POOL_SIZE.equals(parameterName)) {
View Full Code Here

                        final ServiceController<?> managementRepoService = runtimeCtx.getServiceRegistry().getService(
                                ConnectorServices.MANAGEMENT_REPOSISTORY_SERVICE);
                        if (managementRepoService != null) {
                            try {
                                final ManagementRepository repository = (ManagementRepository) managementRepoService.getValue();
                                if (repository.getDataSources() != null) {
                                    for (DataSource ds : repository.getDataSources()) {
                                        if (jndiName.equalsIgnoreCase(ds.getJndiName())) {
                                            if (MAX_POOL_SIZE.equals(parameterName)) {
                                                ds.getPoolConfiguration().setMaxSize(newValue.asInt());
                                            }
                                            if (MIN_POOL_SIZE.equals(parameterName)) {
View Full Code Here

                        final ServiceController<?> managementRepoService = runtimeCtx.getServiceRegistry().getService(
                                ConnectorServices.MANAGEMENT_REPOSISTORY_SERVICE);
                        if (managementRepoService != null) {
                            try {
                                final ManagementRepository repository = (ManagementRepository) managementRepoService.getValue();
                                if (repository.getConnectors() != null) {
                                    for (Connector conn : repository.getConnectors()) {
                                        if (jndiName.equalsIgnoreCase(conn.getUniqueId())) {
                                            if (conn.getConnectionFactories() == null
                                                    || conn.getConnectionFactories().get(0) == null)
                                                continue;
                                            PoolConfiguration pc = conn.getConnectionFactories().get(0).getPoolConfiguration();
View Full Code Here

    private final ManagementRepository value;

    /** create an instance **/
    public ManagementRepositoryService() {
        super();
        this.value = new ManagementRepository();

    }
View Full Code Here

TOP

Related Classes of org.jboss.jca.core.api.management.ManagementRepository

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.