Package org.rioproject.system.capability.platform

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


        List<PlatformCapability> platforms = new ArrayList<PlatformCapability>();
        try {
            /*
             * Load default platform (qualitative) capabilities
             */
            ProcessorArchitecture processor = new ProcessorArchitecture();
            platforms.add(processor);

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

View Full Code Here


        /*
         * Check if we have a match in one of the sought after architectures
         */
        if(!architectures.isEmpty()) {
            ProcessorArchitecture architecture = getArchitecture();
            Result result = check(architecture, architectures);
            if (!result.supported) {
                String failureReason = formatFailureReason(architectures,
                                                           (String)architecture.getCapabilities().get(ProcessorArchitecture.ARCHITECTURE),
                                                           "architecture",
                                                           sElem,
                                                           result.excluded.isEmpty(),
                                                           ProcessorArchitecture.ARCHITECTURE);
                if(logger.isWarnEnabled()) {
View Full Code Here

        }
        return systemComponent.getClassName().equals(TCPConnectivity.class.getName());
    }

    ProcessorArchitecture getArchitecture () {
        ProcessorArchitecture architecture = null;
        for (PlatformCapability platformCapability : resourceCapability.getPlatformCapabilities()) {
            if(platformCapability instanceof ProcessorArchitecture) {
                architecture = (ProcessorArchitecture) platformCapability;
                break;
            }
View Full Code Here

TOP

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

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.