Package com.microsoft.windowsazure.management.scheduler.models

Examples of com.microsoft.windowsazure.management.scheduler.models.JobCollectionQuota


                        intrinsicSettingsInstance.setPlan(planInstance);
                    }
                   
                    Element quotaElement = XmlUtility.getElementByTagNameNS(intrinsicSettingsElement, "http://schemas.microsoft.com/windowsazure", "Quota");
                    if (quotaElement != null) {
                        JobCollectionQuota quotaInstance = new JobCollectionQuota();
                        intrinsicSettingsInstance.setQuota(quotaInstance);
                       
                        Element maxJobCountElement = XmlUtility.getElementByTagNameNS(quotaElement, "http://schemas.microsoft.com/windowsazure", "MaxJobCount");
                        if (maxJobCountElement != null && (maxJobCountElement.getTextContent() == null || maxJobCountElement.getTextContent().isEmpty() == true) == false) {
                            int maxJobCountInstance;
                            maxJobCountInstance = DatatypeConverter.parseInt(maxJobCountElement.getTextContent());
                            quotaInstance.setMaxJobCount(maxJobCountInstance);
                        }
                       
                        Element maxJobOccurrenceElement = XmlUtility.getElementByTagNameNS(quotaElement, "http://schemas.microsoft.com/windowsazure", "MaxJobOccurrence");
                        if (maxJobOccurrenceElement != null && (maxJobOccurrenceElement.getTextContent() == null || maxJobOccurrenceElement.getTextContent().isEmpty() == true) == false) {
                            int maxJobOccurrenceInstance;
                            maxJobOccurrenceInstance = DatatypeConverter.parseInt(maxJobOccurrenceElement.getTextContent());
                            quotaInstance.setMaxJobOccurrence(maxJobOccurrenceInstance);
                        }
                       
                        Element maxRecurrenceElement = XmlUtility.getElementByTagNameNS(quotaElement, "http://schemas.microsoft.com/windowsazure", "MaxRecurrence");
                        if (maxRecurrenceElement != null) {
                            JobCollectionMaxRecurrence maxRecurrenceInstance = new JobCollectionMaxRecurrence();
                            quotaInstance.setMaxRecurrence(maxRecurrenceInstance);
                           
                            Element frequencyElement = XmlUtility.getElementByTagNameNS(maxRecurrenceElement, "http://schemas.microsoft.com/windowsazure", "Frequency");
                            if (frequencyElement != null) {
                                JobCollectionRecurrenceFrequency frequencyInstance;
                                frequencyInstance = JobCollectionRecurrenceFrequency.valueOf(frequencyElement.getTextContent());
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.management.scheduler.models.JobCollectionQuota

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.