Package org.apache.provisionr.api.hardware

Examples of org.apache.provisionr.api.hardware.Hardware


            .createAdminAccess();

        final Network network = Network.builder().addRules(
            Rule.builder().anySource().tcp().port(22).createRule()).createNetwork();

        final Hardware hardware = Hardware.builder().type(getProviderProperty("serviceOffering")).createHardware();
        final Software software = Software.builder()
            .imageId(getProviderProperty("templateId"))
            .createSoftware();

        Map<String, String> options = ImmutableMap.of(ProviderOptions.ZONE_ID,
View Full Code Here


    @VisibleForTesting
    Pool createPoolOfOne(Provisionr service) {

        final Software software = Software.builder().packages(packages).createSoftware();
        final Hardware hardware = Hardware.builder().type(HARDWARE_TYPE).createHardware();

        final Pool pool = Pool.builder()
            .provider(getDefaultProvider(service).get())
            .hardware(hardware)
            .software(software)
View Full Code Here

        final Software software = Software.builder()
            .packages(packages)
            .imageId(imageId)
            .cachedImage(cachedImage)
            .createSoftware();
        final Hardware hardware = Hardware.builder()
            .type(hardwareType)
            .blockDevices(parseBlockDeviceOptions(blockDeviceOptions))
            .createHardware();

        final Pool pool = Pool.builder()
View Full Code Here

        final Software software = Software.builder().imageId("ubuntu-10.04")
            .packages("nginx").createSoftware();

        final AdminAccess adminAccess = AdminAccess.builder().asCurrentUser().createAdminAccess();

        final Hardware hardware = Hardware.builder().type("offering").createHardware();

        final Pool pool = Pool.builder().network(network).provider(provider).adminAccess(adminAccess)
            .software(software).hardware(hardware).minSize(1).expectedSize(1).createPool();

        String processId = provisionr.startPoolManagementProcess(UUID.randomUUID().toString(), pool);
View Full Code Here

        final Network network = Network.builder().addRules(
            Rule.builder().anySource().icmp().createRule(),
            Rule.builder().anySource().port(22).protocol(Protocol.TCP).createRule()
        ).createNetwork();

        final Hardware hardware = Hardware.builder().type(TEST_INSTANCE_TYPE).createHardware();

        final AdminAccess adminAccess = AdminAccess.builder().asCurrentUser().createAdminAccess();

        final String destinationPath = "/home/" + adminAccess.getUsername() + "/provisionr.html";
        final Software software = Software.builder()
View Full Code Here

TOP

Related Classes of org.apache.provisionr.api.hardware.Hardware

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.