Examples of NetworkSettings


Examples of flex.messaging.config.NetworkSettings

    {
        ConfigMap network = properties.getPropertyAsMap(NetworkSettings.NETWORK_ELEMENT, null);
        if (network != null)
        {
            // Get implementation specific network settings, including subclasses!
            NetworkSettings ns = getNetworkSettings();

            // Subscriber timeout; first check for subscription-timeout-minutes and fallback to legacy session-timeout.
            int useLegacyPropertyToken = -999999;
            int subscriptionTimeoutMinutes = network.getPropertyAsInt(NetworkSettings.SUBSCRIPTION_TIMEOUT_MINUTES, useLegacyPropertyToken);
            if (subscriptionTimeoutMinutes == useLegacyPropertyToken)
                subscriptionTimeoutMinutes = network.getPropertyAsInt(NetworkSettings.SESSION_TIMEOUT, NetworkSettings.DEFAULT_TIMEOUT);
            ns.setSubscriptionTimeoutMinutes(subscriptionTimeoutMinutes);

            // Throttle Settings
            throttle(ns.getThrottleSettings(), network);

            setNetworkSettings(ns);
        }
    }
View Full Code Here

Examples of flex.messaging.config.NetworkSettings

     */
    public Destination(boolean enableManagement)
    {
        super(enableManagement);

        networkSettings = new NetworkSettings();
    }
View Full Code Here

Examples of flex.messaging.config.NetworkSettings

    {
        ConfigMap network = properties.getPropertyAsMap(NetworkSettings.NETWORK_ELEMENT, null);
        if (network != null)
        {
            // Get implementation specific network settings, including subclasses!
            NetworkSettings ns = getNetworkSettings();

            // Subscriber timeout; first check for subscription-timeout-minutes and fallback to legacy session-timeout.
            int useLegacyPropertyToken = -999999;
            int subscriptionTimeoutMinutes = network.getPropertyAsInt(NetworkSettings.SUBSCRIPTION_TIMEOUT_MINUTES, useLegacyPropertyToken);
            if (subscriptionTimeoutMinutes == useLegacyPropertyToken)
                subscriptionTimeoutMinutes = network.getPropertyAsInt(NetworkSettings.SESSION_TIMEOUT, NetworkSettings.DEFAULT_TIMEOUT);
            ns.setSubscriptionTimeoutMinutes(subscriptionTimeoutMinutes);

            // Throttle Settings
            throttle(ns.getThrottleSettings(), network);
           
            setNetworkSettings(ns);
        }
    }
View Full Code Here

Examples of flex.messaging.config.NetworkSettings

     */
    public Destination(boolean enableManagement)
    {
        super(enableManagement);
       
        networkSettings = new NetworkSettings();
    }
View Full Code Here

Examples of io.fabric8.docker.api.container.NetworkSettings

            docker.containerStart(rootDockerContainerId, hostConfig);

            ContainerInfo containerInfo = docker.containerInspect(rootDockerContainerId);
            System.out.println("Inspected container got: " + containerInfo);

            NetworkSettings networkSettings = containerInfo.getNetworkSettings();
            assertNotNull("No NetworkSettings available for docker container: " + rootDockerContainerId, networkSettings);
            Map<String, Object> ports = networkSettings.getPorts();
            String webPortText = "8181/tcp";
            Object bindingObject = ports.get(webPortText);
            if (bindingObject instanceof List) {
                List<Map<String, String>> bindingList = (List<Map<String, String>>) bindingObject;
                assertTrue("Binding list for port 8181/tcp is empty for docker container: " + rootDockerContainerId, bindingList.size() > 0);
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.