| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| // |
| // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 |
| // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
| // Any modifications to this file will be lost upon recompilation of the source schema. |
| // Generated on: 2018.01.04 at 04:15:49 PM GMT |
| // |
| |
| |
| package org.apache.taverna.server.usagerecord.xml.urf2; |
| |
| import java.math.BigDecimal; |
| import java.math.BigInteger; |
| import java.util.ArrayList; |
| import java.util.List; |
| import javax.xml.bind.annotation.XmlAccessType; |
| import javax.xml.bind.annotation.XmlAccessorType; |
| import javax.xml.bind.annotation.XmlElement; |
| import javax.xml.bind.annotation.XmlSchemaType; |
| import javax.xml.bind.annotation.XmlType; |
| import javax.xml.datatype.Duration; |
| import javax.xml.datatype.XMLGregorianCalendar; |
| |
| |
| /** |
| * Open Grid Forum GFD.204 Usage Record type <code>ComputeUsageBlockType</code> |
| * |
| * @see <a href="https://www.ogf.org/documents/GFD.204.pdf#section.5">GFD.204 section 5</a> |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "ComputeUsageBlockType", propOrder = { |
| "cpuDuration", |
| "wallDuration", |
| "startTime", |
| "endTime", |
| "executionHost", |
| "hostType", |
| "processors", |
| "nodeCount", |
| "exitStatus", |
| "charge" |
| }) |
| public class ComputeUsageBlockType { |
| |
| @XmlElement(name = "CpuDuration", required = true) |
| protected Duration cpuDuration; |
| @XmlElement(name = "WallDuration", required = true) |
| protected Duration wallDuration; |
| @XmlElement(name = "StartTime", required = true) |
| @XmlSchemaType(name = "dateTime") |
| protected XMLGregorianCalendar startTime; |
| @XmlElement(name = "EndTime", required = true) |
| @XmlSchemaType(name = "dateTime") |
| protected XMLGregorianCalendar endTime; |
| @XmlElement(name = "ExecutionHost") |
| protected List<ExecutionHostType> executionHost; |
| @XmlElement(name = "HostType") |
| protected String hostType; |
| @XmlElement(name = "Processors") |
| @XmlSchemaType(name = "positiveInteger") |
| protected BigInteger processors; |
| @XmlElement(name = "NodeCount") |
| @XmlSchemaType(name = "positiveInteger") |
| protected BigInteger nodeCount; |
| @XmlElement(name = "ExitStatus") |
| protected BigInteger exitStatus; |
| @XmlElement(name = "Charge") |
| protected BigDecimal charge; |
| |
| /** |
| * Gets the value of the cpuDuration property. |
| * |
| * @return |
| * possible object is |
| * {@link Duration } |
| * |
| */ |
| public Duration getCpuDuration() { |
| return cpuDuration; |
| } |
| |
| /** |
| * Sets the value of the cpuDuration property. |
| * |
| * @param value |
| * allowed object is |
| * {@link Duration } |
| * |
| */ |
| public void setCpuDuration(Duration value) { |
| this.cpuDuration = value; |
| } |
| |
| /** |
| * Gets the value of the wallDuration property. |
| * |
| * @return |
| * possible object is |
| * {@link Duration } |
| * |
| */ |
| public Duration getWallDuration() { |
| return wallDuration; |
| } |
| |
| /** |
| * Sets the value of the wallDuration property. |
| * |
| * @param value |
| * allowed object is |
| * {@link Duration } |
| * |
| */ |
| public void setWallDuration(Duration value) { |
| this.wallDuration = value; |
| } |
| |
| /** |
| * Gets the value of the startTime property. |
| * |
| * @return |
| * possible object is |
| * {@link XMLGregorianCalendar } |
| * |
| */ |
| public XMLGregorianCalendar getStartTime() { |
| return startTime; |
| } |
| |
| /** |
| * Sets the value of the startTime property. |
| * |
| * @param value |
| * allowed object is |
| * {@link XMLGregorianCalendar } |
| * |
| */ |
| public void setStartTime(XMLGregorianCalendar value) { |
| this.startTime = value; |
| } |
| |
| /** |
| * Gets the value of the endTime property. |
| * |
| * @return |
| * possible object is |
| * {@link XMLGregorianCalendar } |
| * |
| */ |
| public XMLGregorianCalendar getEndTime() { |
| return endTime; |
| } |
| |
| /** |
| * Sets the value of the endTime property. |
| * |
| * @param value |
| * allowed object is |
| * {@link XMLGregorianCalendar } |
| * |
| */ |
| public void setEndTime(XMLGregorianCalendar value) { |
| this.endTime = value; |
| } |
| |
| /** |
| * Gets the value of the executionHost property. |
| * |
| * <p> |
| * This accessor method returns a reference to the live list, |
| * not a snapshot. Therefore any modification you make to the |
| * returned list will be present inside the JAXB object. |
| * This is why there is not a <CODE>set</CODE> method for the executionHost property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * <pre> |
| * getExecutionHost().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list |
| * {@link ExecutionHostType } |
| * |
| * |
| */ |
| public List<ExecutionHostType> getExecutionHost() { |
| if (executionHost == null) { |
| executionHost = new ArrayList<ExecutionHostType>(); |
| } |
| return this.executionHost; |
| } |
| |
| /** |
| * Gets the value of the hostType property. |
| * |
| * @return |
| * possible object is |
| * {@link String } |
| * |
| */ |
| public String getHostType() { |
| return hostType; |
| } |
| |
| /** |
| * Sets the value of the hostType property. |
| * |
| * @param value |
| * allowed object is |
| * {@link String } |
| * |
| */ |
| public void setHostType(String value) { |
| this.hostType = value; |
| } |
| |
| /** |
| * Gets the value of the processors property. |
| * |
| * @return |
| * possible object is |
| * {@link BigInteger } |
| * |
| */ |
| public BigInteger getProcessors() { |
| return processors; |
| } |
| |
| /** |
| * Sets the value of the processors property. |
| * |
| * @param value |
| * allowed object is |
| * {@link BigInteger } |
| * |
| */ |
| public void setProcessors(BigInteger value) { |
| this.processors = value; |
| } |
| |
| /** |
| * Gets the value of the nodeCount property. |
| * |
| * @return |
| * possible object is |
| * {@link BigInteger } |
| * |
| */ |
| public BigInteger getNodeCount() { |
| return nodeCount; |
| } |
| |
| /** |
| * Sets the value of the nodeCount property. |
| * |
| * @param value |
| * allowed object is |
| * {@link BigInteger } |
| * |
| */ |
| public void setNodeCount(BigInteger value) { |
| this.nodeCount = value; |
| } |
| |
| /** |
| * Gets the value of the exitStatus property. |
| * |
| * @return |
| * possible object is |
| * {@link BigInteger } |
| * |
| */ |
| public BigInteger getExitStatus() { |
| return exitStatus; |
| } |
| |
| /** |
| * Sets the value of the exitStatus property. |
| * |
| * @param value |
| * allowed object is |
| * {@link BigInteger } |
| * |
| */ |
| public void setExitStatus(BigInteger value) { |
| this.exitStatus = value; |
| } |
| |
| /** |
| * Gets the value of the charge property. |
| * |
| * @return |
| * possible object is |
| * {@link BigDecimal } |
| * |
| */ |
| public BigDecimal getCharge() { |
| return charge; |
| } |
| |
| /** |
| * Sets the value of the charge property. |
| * |
| * @param value |
| * allowed object is |
| * {@link BigDecimal } |
| * |
| */ |
| public void setCharge(BigDecimal value) { |
| this.charge = value; |
| } |
| |
| } |