Package org.jboss.dmr

Examples of org.jboss.dmr.ModelNode.keys()


    }

    private void checkFullBoundedQueueThreadPool() throws Exception {
        ModelNode subsystem = model.require("profile").require("test").require("subsystem").require("threads");
        ModelNode threadPool = subsystem.require("bounded-queue-thread-pool");
        assertEquals(1, threadPool.keys().size());
        assertEquals("test-pool", threadPool.require("test-pool").require("name").asString());
        assertTrue(threadPool.require("test-pool").require("allow-core-timeout").asBoolean());
        assertEquals(200, threadPool.require("test-pool").require(CORE_THREADS).asInt());
        assertEquals(300, threadPool.require("test-pool").require(QUEUE_LENGTH).asInt());
        assertEquals(100, threadPool.require("test-pool").require(MAX_THREADS).asInt());
View Full Code Here


            }
        }

        ModelNode subsystem = model.require("profile").require("test").require("subsystem").require("threads");
        ModelNode threadFactory = subsystem.require("bounded-queue-thread-pool");
        assertEquals(2, threadFactory.keys().size());
        assertEquals("test-poolA", threadFactory.require("test-poolA").require("name").asString());
        assertEquals("test-poolB", threadFactory.require("test-poolB").require("name").asString());
    }

    @Test
View Full Code Here

            }
        }

        ModelNode subsystem = model.require("profile").require("test").require("subsystem").require("threads");
        ModelNode threadFactory = subsystem.require("bounded-queue-thread-pool");
        assertEquals(2, threadFactory.keys().size());
        assertEquals("test-poolA", threadFactory.require("test-poolA").require("name").asString());
        assertEquals("test-poolB", threadFactory.require("test-poolB").require("name").asString());
    }

    @Test
View Full Code Here

            }
        }

        ModelNode subsystem = model.require("profile").require("test").require("subsystem").require("threads");
        ModelNode threadPool = subsystem.require("blocking-bounded-queue-thread-pool");
        assertEquals(1, threadPool.keys().size());
        assertEquals("test-pool", threadPool.require("test-pool").require("name").asString());
    }

    @Test
    public void testSimpleBlockingBoundedQueueThreadPool1_0() throws Exception {
View Full Code Here

            }
        }

        ModelNode subsystem = model.require("profile").require("test").require("subsystem").require("threads");
        ModelNode threadPool = subsystem.require("blocking-bounded-queue-thread-pool");
        assertEquals(1, threadPool.keys().size());
        assertEquals("test-pool", threadPool.require("test-pool").require("name").asString());
    }

    @Test
    public void testFullBlockingBoundedQueueThreadPool() throws Exception {
View Full Code Here

    }

    private void checkFullBlockingBoundedQueueThreadPool() throws Exception {
        ModelNode subsystem = model.require("profile").require("test").require("subsystem").require("threads");
        ModelNode threadPool = subsystem.require("blocking-bounded-queue-thread-pool");
        assertEquals(1, threadPool.keys().size());
        assertEquals("test-pool", threadPool.require("test-pool").require("name").asString());
        assertTrue(threadPool.require("test-pool").require("allow-core-timeout").asBoolean());
        assertEquals(200, threadPool.require("test-pool").require(CORE_THREADS).asInt());
        assertEquals(300, threadPool.require("test-pool").require(QUEUE_LENGTH).asInt());
        assertEquals(100, threadPool.require("test-pool").require(MAX_THREADS).asInt());
View Full Code Here

            }
        }

        ModelNode subsystem = model.require("profile").require("test").require("subsystem").require("threads");
        ModelNode threadFactory = subsystem.require("blocking-bounded-queue-thread-pool");
        assertEquals(2, threadFactory.keys().size());
        assertEquals("test-poolA", threadFactory.require("test-poolA").require("name").asString());
        assertEquals("test-poolB", threadFactory.require("test-poolB").require("name").asString());
    }

    @Test
View Full Code Here

            }
        }

        ModelNode subsystem = model.require("profile").require("test").require("subsystem").require("threads");
        ModelNode threadFactory = subsystem.require("blocking-bounded-queue-thread-pool");
        assertEquals(2, threadFactory.keys().size());
        assertEquals("test-poolA", threadFactory.require("test-poolA").require("name").asString());
        assertEquals("test-poolB", threadFactory.require("test-poolB").require("name").asString());
    }

    private ModelNode createOperation(String operationName, String... address) {
View Full Code Here

        final ModelNode subsystemAdd = getSubsystemAddOperation(wsSubsystemAddress, wsSubsystem);
        result.add(subsystemAdd);

        if (wsSubsystem.hasDefined(ENDPOINT_CONFIG)) {
            final ModelNode endpointConfigs = wsSubsystem.get(ENDPOINT_CONFIG);
            for (final String configName : endpointConfigs.keys()) {
                final ModelNode endpointConfig = endpointConfigs.get(configName);
                final ModelNode endpointConfigAddress = wsSubsystemAddress.clone().add(ENDPOINT_CONFIG, configName);
                final ModelNode endpointConfigAdd = getEndpointConfigAddOperation(endpointConfigAddress);
                result.add(endpointConfigAdd);
View Full Code Here

                final ModelNode endpointConfigAdd = getEndpointConfigAddOperation(endpointConfigAddress);
                result.add(endpointConfigAdd);

                if (endpointConfig.hasDefined(PRE_HANDLER_CHAIN)) {
                    final ModelNode preHandlerChains = endpointConfig.get(PRE_HANDLER_CHAIN);
                    for (final String preHandlerChainName : preHandlerChains.keys()) {
                        final ModelNode preHandlerChain = preHandlerChains.get(preHandlerChainName);
                        final ModelNode preHandlerChainAddress = endpointConfigAddress.clone().add(PRE_HANDLER_CHAIN, preHandlerChainName);
                        final ModelNode preHandlerChainAdd = getHandlerChainAddOperation(preHandlerChainAddress, preHandlerChain);
                        result.add(preHandlerChainAdd);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.