View Javadoc

1   /***
2    * StateType.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC2 Jun 16, 2005 (10:54:53 EDT) WSDL2Java emitter.
6    */
7   
8   package org.globus.mds.glue;
9   
10  public class StateType  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
11      private org.apache.axis.message.MessageElement [] _any;
12      private java.lang.String status;  // attribute
13      private int totalJobs;  // attribute
14      private int runningJobs;  // attribute
15      private int waitingJobs;  // attribute
16      private int worstResponseTime;  // attribute
17      private int estimatedResponseTime;  // attribute
18      private int freeCPUs;  // attribute
19  
20      public StateType() {
21      }
22  
23      public StateType(
24             org.apache.axis.message.MessageElement [] _any,
25             int estimatedResponseTime,
26             int freeCPUs,
27             int runningJobs,
28             java.lang.String status,
29             int totalJobs,
30             int waitingJobs,
31             int worstResponseTime) {
32             this._any = _any;
33             this.status = status;
34             this.totalJobs = totalJobs;
35             this.runningJobs = runningJobs;
36             this.waitingJobs = waitingJobs;
37             this.worstResponseTime = worstResponseTime;
38             this.estimatedResponseTime = estimatedResponseTime;
39             this.freeCPUs = freeCPUs;
40      }
41  
42  
43      /***
44       * Gets the _any value for this StateType.
45       * 
46       * @return _any
47       */
48      public org.apache.axis.message.MessageElement [] get_any() {
49          return _any;
50      }
51  
52  
53      /***
54       * Sets the _any value for this StateType.
55       * 
56       * @param _any
57       */
58      public void set_any(org.apache.axis.message.MessageElement [] _any) {
59          this._any = _any;
60      }
61  
62  
63      /***
64       * Gets the status value for this StateType.
65       * 
66       * @return status
67       */
68      public java.lang.String getStatus() {
69          return status;
70      }
71  
72  
73      /***
74       * Sets the status value for this StateType.
75       * 
76       * @param status
77       */
78      public void setStatus(java.lang.String status) {
79          this.status = status;
80      }
81  
82  
83      /***
84       * Gets the totalJobs value for this StateType.
85       * 
86       * @return totalJobs
87       */
88      public int getTotalJobs() {
89          return totalJobs;
90      }
91  
92  
93      /***
94       * Sets the totalJobs value for this StateType.
95       * 
96       * @param totalJobs
97       */
98      public void setTotalJobs(int totalJobs) {
99          this.totalJobs = totalJobs;
100     }
101 
102 
103     /***
104      * Gets the runningJobs value for this StateType.
105      * 
106      * @return runningJobs
107      */
108     public int getRunningJobs() {
109         return runningJobs;
110     }
111 
112 
113     /***
114      * Sets the runningJobs value for this StateType.
115      * 
116      * @param runningJobs
117      */
118     public void setRunningJobs(int runningJobs) {
119         this.runningJobs = runningJobs;
120     }
121 
122 
123     /***
124      * Gets the waitingJobs value for this StateType.
125      * 
126      * @return waitingJobs
127      */
128     public int getWaitingJobs() {
129         return waitingJobs;
130     }
131 
132 
133     /***
134      * Sets the waitingJobs value for this StateType.
135      * 
136      * @param waitingJobs
137      */
138     public void setWaitingJobs(int waitingJobs) {
139         this.waitingJobs = waitingJobs;
140     }
141 
142 
143     /***
144      * Gets the worstResponseTime value for this StateType.
145      * 
146      * @return worstResponseTime
147      */
148     public int getWorstResponseTime() {
149         return worstResponseTime;
150     }
151 
152 
153     /***
154      * Sets the worstResponseTime value for this StateType.
155      * 
156      * @param worstResponseTime
157      */
158     public void setWorstResponseTime(int worstResponseTime) {
159         this.worstResponseTime = worstResponseTime;
160     }
161 
162 
163     /***
164      * Gets the estimatedResponseTime value for this StateType.
165      * 
166      * @return estimatedResponseTime
167      */
168     public int getEstimatedResponseTime() {
169         return estimatedResponseTime;
170     }
171 
172 
173     /***
174      * Sets the estimatedResponseTime value for this StateType.
175      * 
176      * @param estimatedResponseTime
177      */
178     public void setEstimatedResponseTime(int estimatedResponseTime) {
179         this.estimatedResponseTime = estimatedResponseTime;
180     }
181 
182 
183     /***
184      * Gets the freeCPUs value for this StateType.
185      * 
186      * @return freeCPUs
187      */
188     public int getFreeCPUs() {
189         return freeCPUs;
190     }
191 
192 
193     /***
194      * Sets the freeCPUs value for this StateType.
195      * 
196      * @param freeCPUs
197      */
198     public void setFreeCPUs(int freeCPUs) {
199         this.freeCPUs = freeCPUs;
200     }
201 
202     private java.lang.Object __equalsCalc = null;
203     public synchronized boolean equals(java.lang.Object obj) {
204         if (!(obj instanceof StateType)) return false;
205         StateType other = (StateType) obj;
206         if (obj == null) return false;
207         if (this == obj) return true;
208         if (__equalsCalc != null) {
209             return (__equalsCalc == obj);
210         }
211         __equalsCalc = obj;
212         boolean _equals;
213         _equals = true && 
214             ((this._any==null && other.get_any()==null) || 
215              (this._any!=null &&
216               java.util.Arrays.equals(this._any, other.get_any()))) &&
217             ((this.status==null && other.getStatus()==null) || 
218              (this.status!=null &&
219               this.status.equals(other.getStatus()))) &&
220             this.totalJobs == other.getTotalJobs() &&
221             this.runningJobs == other.getRunningJobs() &&
222             this.waitingJobs == other.getWaitingJobs() &&
223             this.worstResponseTime == other.getWorstResponseTime() &&
224             this.estimatedResponseTime == other.getEstimatedResponseTime() &&
225             this.freeCPUs == other.getFreeCPUs();
226         __equalsCalc = null;
227         return _equals;
228     }
229 
230     private boolean __hashCodeCalc = false;
231     public synchronized int hashCode() {
232         if (__hashCodeCalc) {
233             return 0;
234         }
235         __hashCodeCalc = true;
236         int _hashCode = 1;
237         if (get_any() != null) {
238             for (int i=0;
239                  i<java.lang.reflect.Array.getLength(get_any());
240                  i++) {
241                 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
242                 if (obj != null &&
243                     !obj.getClass().isArray()) {
244                     _hashCode += obj.hashCode();
245                 }
246             }
247         }
248         if (getStatus() != null) {
249             _hashCode += getStatus().hashCode();
250         }
251         _hashCode += getTotalJobs();
252         _hashCode += getRunningJobs();
253         _hashCode += getWaitingJobs();
254         _hashCode += getWorstResponseTime();
255         _hashCode += getEstimatedResponseTime();
256         _hashCode += getFreeCPUs();
257         __hashCodeCalc = false;
258         return _hashCode;
259     }
260 
261     // Type metadata
262     private static org.apache.axis.description.TypeDesc typeDesc =
263         new org.apache.axis.description.TypeDesc(StateType.class, true);
264 
265     static {
266         typeDesc.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "StateType"));
267         org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
268         attrField.setFieldName("status");
269         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Status"));
270         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
271         typeDesc.addFieldDesc(attrField);
272         attrField = new org.apache.axis.description.AttributeDesc();
273         attrField.setFieldName("totalJobs");
274         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "TotalJobs"));
275         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
276         typeDesc.addFieldDesc(attrField);
277         attrField = new org.apache.axis.description.AttributeDesc();
278         attrField.setFieldName("runningJobs");
279         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "RunningJobs"));
280         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
281         typeDesc.addFieldDesc(attrField);
282         attrField = new org.apache.axis.description.AttributeDesc();
283         attrField.setFieldName("waitingJobs");
284         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "WaitingJobs"));
285         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
286         typeDesc.addFieldDesc(attrField);
287         attrField = new org.apache.axis.description.AttributeDesc();
288         attrField.setFieldName("worstResponseTime");
289         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "WorstResponseTime"));
290         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
291         typeDesc.addFieldDesc(attrField);
292         attrField = new org.apache.axis.description.AttributeDesc();
293         attrField.setFieldName("estimatedResponseTime");
294         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "EstimatedResponseTime"));
295         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
296         typeDesc.addFieldDesc(attrField);
297         attrField = new org.apache.axis.description.AttributeDesc();
298         attrField.setFieldName("freeCPUs");
299         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "FreeCPUs"));
300         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
301         typeDesc.addFieldDesc(attrField);
302     }
303 
304     /***
305      * Return type metadata object
306      */
307     public static org.apache.axis.description.TypeDesc getTypeDesc() {
308         return typeDesc;
309     }
310 
311     /***
312      * Get Custom Serializer
313      */
314     public static org.apache.axis.encoding.Serializer getSerializer(
315            java.lang.String mechType, 
316            java.lang.Class _javaType,  
317            javax.xml.namespace.QName _xmlType) {
318         return 
319           new  org.apache.axis.encoding.ser.BeanSerializer(
320             _javaType, _xmlType, typeDesc);
321     }
322 
323     /***
324      * Get Custom Deserializer
325      */
326     public static org.apache.axis.encoding.Deserializer getDeserializer(
327            java.lang.String mechType, 
328            java.lang.Class _javaType,  
329            javax.xml.namespace.QName _xmlType) {
330         return 
331           new  org.apache.axis.encoding.ser.BeanDeserializer(
332             _javaType, _xmlType, typeDesc);
333     }
334 
335 }