View Javadoc
1   /*
2    * #%L
3    * This file is part of jFold.
4    * %%
5    * Copyright (C) 2012 - 2024 Mike Thomas <mikepthomas@outlook.com>
6    * %%
7    * jFold is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU General Public License as published by
9    * the Free Software Foundation, either version 3 of the License, or
10   * (at your option) any later version.
11   * %
12   * jFold is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Public License for more details.
16   * %
17   * You should have received a copy of the GNU General Public License
18   * along with jFold.  If not, see <http://www.gnu.org/licenses/>.
19   * #L%
20   */
21  package info.mikethomas.jfold.slot;
22  
23  import java.io.Serializable;
24  
25  import jakarta.xml.bind.annotation.XmlElement;
26  import jakarta.xml.bind.annotation.XmlRootElement;
27  
28  import lombok.Getter;
29  import lombok.ToString;
30  
31  /**
32   * <p>SlotOptions class.</p>
33   *
34   * @author Michael Thomas (mikepthomas@outlook.com)
35   * @version 7.6.21
36   */
37  @Getter
38  @ToString
39  @XmlRootElement(name = "slot-options")
40  public class SlotOptions implements Serializable {
41  
42      /**
43       * Client type.
44       *
45       * @return the <code>client-type</code> from <code>slot-options</code>
46       */
47      @XmlElement(name = "client-type")
48      private String clientType;
49  
50      /**
51       * Client sub-type.
52       *
53       * @return the <code>client-subtype</code> from <code>slot-options</code>
54       */
55      @XmlElement(name = "client-subtype")
56      private String clientSubtype;
57  
58      /**
59       * Machine identifier.
60       *
61       * @return the <code>machine-id</code> from <code>slot-options</code>
62       */
63      @XmlElement(name = "machine-id")
64      private Integer machineId;
65  
66      /**
67       * Maximum packet size.
68       *
69       * @return the <code>max-packet-size</code> from <code>slot-options</code>
70       */
71      @XmlElement(name = "max-packet-size")
72      private String maxPacketSize;
73  
74      /**
75       * Core priority.
76       *
77       * @return the <code>core-priority</code> from <code>slot-options</code>
78       */
79      @XmlElement(name = "core-priority")
80      private String corePriority;
81  
82      /**
83       * Next unit percentage.
84       *
85       * @return the <code>next-unit-percentage</code> from <code>slot-options</code>
86       */
87      @XmlElement(name = "next-unit-percentage")
88      private Integer nextUnitPercentage;
89  
90      /**
91       * Maximum units.
92       *
93       * @return the <code>max-units</code> from <code>slot-options</code>
94       */
95      @XmlElement(name = "max-units")
96      private Integer maxUnits;
97  
98      /**
99       * Checkpoint.
100      *
101      * @return the <code>checkpoint</code> from <code>slot-options</code>
102      */
103     @XmlElement
104     private Integer checkpoint;
105 
106     /**
107      * Pause on start.
108      *
109      * @return the <code>pause-on-start</code> from <code>slot-options</code>
110      */
111     @XmlElement(name = "pause-on-start")
112     private Boolean pauseOnStart;
113 
114     /**
115      * Graphics processor vendor identifier.
116      *
117      * @return the <code>client-type</code> from <code>slot-options</code>
118      */
119     @XmlElement(name = "gpu-vendor-id")
120     private String gpuVendorId;
121 
122     /**
123      * Graphics processor device identifier.
124      *
125      * @return the <code>gpu-device-id</code> from <code>slot-options</code>
126      */
127     @XmlElement(name = "gpu-device-id")
128     private String gpuDeviceId;
129 
130     /**
131      * CPUs.
132      *
133      * @return the <code>cpus</code> from <code>slot-options</code>
134      */
135     @XmlElement
136     private String cpus;
137 
138     /**
139      * Idle.
140      *
141      * @return the <code>idle</code> from <code>slot-options</code>
142      */
143     @XmlElement
144     private Boolean idle;
145 
146     /**
147      * Paused.
148      *
149      * @return the <code>paused</code> from <code>slot-options</code>
150      */
151     @XmlElement
152     private Boolean paused;
153 }