Package org.rioproject.system.capability.platform

Examples of org.rioproject.system.capability.platform.OperatingSystem


             * Load default platform (qualitative) capabilities
             */
            ProcessorArchitecture processor = new ProcessorArchitecture();
            platforms.add(processor);

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

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

View Full Code Here


        /*
         * Check if we have a match in one of the sought after operating systems
         */
        if(!operatingSystems.isEmpty()) {
            OperatingSystem operatingSystem = getOperatingSystem();
            Result result = check(operatingSystem, operatingSystems);
            if (!result.supported) {
                String failureReason = formatFailureReason(operatingSystems,
                                                           operatingSystem.getCapabilities().get(OperatingSystem.NAME).toString(),
                                                           "operating system",
                                                           sElem,
                                                           result.excluded.isEmpty(),
                                                           OperatingSystem.NAME);
                if(logger.isWarnEnabled()) {
View Full Code Here

        }
        return architecture;
    }

    OperatingSystem getOperatingSystem () {
        OperatingSystem operatingSystem = null;
        for (PlatformCapability platformCapability : resourceCapability.getPlatformCapabilities()) {
            if(platformCapability instanceof OperatingSystem) {
                operatingSystem = (OperatingSystem) platformCapability;
                break;
            }
View Full Code Here

TOP

Related Classes of org.rioproject.system.capability.platform.OperatingSystem

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.