Examples of TCPConnectivity


Examples of org.rioproject.system.capability.connectivity.TCPConnectivity

            platforms.add(processor);

            PlatformCapability operatingSystem = new OperatingSystem();
            platforms.add(operatingSystem);

            PlatformCapability tcpIP = new TCPConnectivity();
            platforms.add(tcpIP);

            PlatformCapability j2se = new J2SESupport();
            platforms.add(j2se);
View Full Code Here

Examples of org.rioproject.system.capability.connectivity.TCPConnectivity

        OperatingSystem operatingSystem  = getCapability(OperatingSystem.class, pCaps);
        Assert.assertNotNull(operatingSystem);
        log(operatingSystem);

        TCPConnectivity tcpip  = getCapability(TCPConnectivity.class, pCaps);
        Assert.assertNotNull(tcpip);
        log(tcpip);

        StorageCapability storage  = getCapability(StorageCapability.class, pCaps);
        Assert.assertNotNull(storage);
View Full Code Here

Examples of org.rioproject.system.capability.connectivity.TCPConnectivity

        }
        /*
         * Check if we have a match in one of the sought after machine addresses
         */
        if(!machineAddresses.isEmpty()) {
            TCPConnectivity tcpConnectivity = getTCPConnectivity();
            Result result = check(tcpConnectivity, machineAddresses);
            if (!result.supported) {
                String formattedComponents = formatSystemComponents(machineAddresses,
                                                                    TCPConnectivity.HOST_NAME, TCPConnectivity.HOST_ADDRESS);
                String failureReason;
                if(result.excluded.isEmpty()) {
                    failureReason = String.format("The machine addresses being requested [%s] do not match the " +
                                                  "target resource's machine name/ip [%s/%s] for [%s]",
                                                  formattedComponents,
                                                  tcpConnectivity.getCapabilities().get(TCPConnectivity.HOST_NAME),
                                                  tcpConnectivity.getCapabilities().get(TCPConnectivity.HOST_ADDRESS),
                                                  LoggingUtil.getLoggingName(sElem));
                } else {
                    failureReason = String.format("The target resource's machine name/ip [%s/%s] is on the exclusion list of [%s] for [%s]",
                                                  tcpConnectivity.getCapabilities().get(TCPConnectivity.HOST_NAME),
                                                  tcpConnectivity.getCapabilities().get(TCPConnectivity.HOST_ADDRESS),
                                                  formattedComponents,
                                                  LoggingUtil.getLoggingName(sElem));
                }
                if(logger.isWarnEnabled()) {
                    logger.warn(failureReason);
View Full Code Here

Examples of org.rioproject.system.capability.connectivity.TCPConnectivity

        }
        return operatingSystem;
    }

    TCPConnectivity getTCPConnectivity () {
        TCPConnectivity tcpConnectivity = null;
        for (PlatformCapability platformCapability : resourceCapability.getPlatformCapabilities()) {
            if(platformCapability instanceof TCPConnectivity) {
                tcpConnectivity = (TCPConnectivity) platformCapability;
                break;
            }
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.