Package com.microsoft.windowsazure.management.websites.models

Examples of com.microsoft.windowsazure.management.websites.models.ServerFarmCreateParameters


    }
   
    private void createServerFarm(String webSpaceName) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException, URISyntaxException {
        int currentNumberOfWorkersValue = 2;
        int numberOfWorkersValue = 2;
        ServerFarmCreateParameters createParameters = new ServerFarmCreateParameters();
        createParameters.setCurrentNumberOfWorkers(currentNumberOfWorkersValue);
        createParameters.setCurrentWorkerSize(ServerFarmWorkerSize.Small);
        createParameters.setNumberOfWorkers(numberOfWorkersValue);
        createParameters.setStatus(ServerFarmStatus.Pending);
        createParameters.setWorkerSize(ServerFarmWorkerSize.Small);
        webSiteManagementClient.getServerFarmsOperations().create(webSpaceName, createParameters);
    }
View Full Code Here


        String webSpaceName = "northcentraluswebspace";
        int currentNumberOfWorkersValue = 2;
        int numberOfWorkersValue = 2;
       
        // Arrange
        ServerFarmCreateParameters createParameters = new ServerFarmCreateParameters();
        createParameters.setCurrentNumberOfWorkers(currentNumberOfWorkersValue);
        createParameters.setCurrentWorkerSize(ServerFarmWorkerSize.Small);
        createParameters.setNumberOfWorkers(numberOfWorkersValue);
        createParameters.setStatus(ServerFarmStatus.Pending);       
        createParameters.setWorkerSize(ServerFarmWorkerSize.Small);      
       
        // Act
        ServerFarmCreateResponse serverFarmCreateResponse = webSiteManagementClient.getServerFarmsOperations().create(webSpaceName, createParameters);
       
        // Assert
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.management.websites.models.ServerFarmCreateParameters

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.