1 /***
2 * SubClusterOrHostType.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
11 /***
12 * A subcluster contains at least one host, as well as having properties
13 * associated with it that represent the state of every host within the
14 * subcluster.
15 *
16 * TODO: need some specification of uniqueness. It is reasonable
17 * for
18 * fairly simple type such as architecture to say that it MAY NOT
19 * appear
20 * on both a Host and its containing SubCluster, but for filesystems
21 * (for example) it might be desirable to put some filesystems on the
22 * SubCluster (eg. nfs or pvfs) and some on the
23 * Hosts (eg. /scratch)
24 */
25 public class SubClusterOrHostType implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
26 private org.globus.mds.glue.BenchmarkType benchmark;
27 private org.globus.mds.glue.ProcessorType processor;
28 private org.globus.mds.glue.MainMemoryType mainMemory;
29 private org.globus.mds.glue.OperatingSystemType operatingSystem;
30 private org.globus.mds.glue.StorageDeviceType[] storageDevice;
31 private org.globus.mds.glue.ArchitectureType architecture;
32 private org.globus.mds.glue.ApplicationSoftwareType applicationSoftware;
33 private org.globus.mds.glue.FileSystemType[] fileSystem;
34 private org.globus.mds.glue.NetworkAdapterType[] networkAdapter;
35 private org.apache.axis.message.MessageElement [] _any;
36 private java.lang.String name;
37 private java.lang.String uniqueID;
38 private org.apache.axis.types.URI informationServiceURL;
39
40 public SubClusterOrHostType() {
41 }
42
43 public SubClusterOrHostType(
44 org.apache.axis.message.MessageElement [] _any,
45 org.globus.mds.glue.ApplicationSoftwareType applicationSoftware,
46 org.globus.mds.glue.ArchitectureType architecture,
47 org.globus.mds.glue.BenchmarkType benchmark,
48 org.globus.mds.glue.FileSystemType[] fileSystem,
49 org.apache.axis.types.URI informationServiceURL,
50 org.globus.mds.glue.MainMemoryType mainMemory,
51 java.lang.String name,
52 org.globus.mds.glue.NetworkAdapterType[] networkAdapter,
53 org.globus.mds.glue.OperatingSystemType operatingSystem,
54 org.globus.mds.glue.ProcessorType processor,
55 org.globus.mds.glue.StorageDeviceType[] storageDevice,
56 java.lang.String uniqueID) {
57 this.benchmark = benchmark;
58 this.processor = processor;
59 this.mainMemory = mainMemory;
60 this.operatingSystem = operatingSystem;
61 this.storageDevice = storageDevice;
62 this.architecture = architecture;
63 this.applicationSoftware = applicationSoftware;
64 this.fileSystem = fileSystem;
65 this.networkAdapter = networkAdapter;
66 this._any = _any;
67 this.name = name;
68 this.uniqueID = uniqueID;
69 this.informationServiceURL = informationServiceURL;
70 }
71
72
73 /***
74 * Gets the benchmark value for this SubClusterOrHostType.
75 *
76 * @return benchmark
77 */
78 public org.globus.mds.glue.BenchmarkType getBenchmark() {
79 return benchmark;
80 }
81
82
83 /***
84 * Sets the benchmark value for this SubClusterOrHostType.
85 *
86 * @param benchmark
87 */
88 public void setBenchmark(org.globus.mds.glue.BenchmarkType benchmark) {
89 this.benchmark = benchmark;
90 }
91
92
93 /***
94 * Gets the processor value for this SubClusterOrHostType.
95 *
96 * @return processor
97 */
98 public org.globus.mds.glue.ProcessorType getProcessor() {
99 return processor;
100 }
101
102
103 /***
104 * Sets the processor value for this SubClusterOrHostType.
105 *
106 * @param processor
107 */
108 public void setProcessor(org.globus.mds.glue.ProcessorType processor) {
109 this.processor = processor;
110 }
111
112
113 /***
114 * Gets the mainMemory value for this SubClusterOrHostType.
115 *
116 * @return mainMemory
117 */
118 public org.globus.mds.glue.MainMemoryType getMainMemory() {
119 return mainMemory;
120 }
121
122
123 /***
124 * Sets the mainMemory value for this SubClusterOrHostType.
125 *
126 * @param mainMemory
127 */
128 public void setMainMemory(org.globus.mds.glue.MainMemoryType mainMemory) {
129 this.mainMemory = mainMemory;
130 }
131
132
133 /***
134 * Gets the operatingSystem value for this SubClusterOrHostType.
135 *
136 * @return operatingSystem
137 */
138 public org.globus.mds.glue.OperatingSystemType getOperatingSystem() {
139 return operatingSystem;
140 }
141
142
143 /***
144 * Sets the operatingSystem value for this SubClusterOrHostType.
145 *
146 * @param operatingSystem
147 */
148 public void setOperatingSystem(org.globus.mds.glue.OperatingSystemType operatingSystem) {
149 this.operatingSystem = operatingSystem;
150 }
151
152
153 /***
154 * Gets the storageDevice value for this SubClusterOrHostType.
155 *
156 * @return storageDevice
157 */
158 public org.globus.mds.glue.StorageDeviceType[] getStorageDevice() {
159 return storageDevice;
160 }
161
162
163 /***
164 * Sets the storageDevice value for this SubClusterOrHostType.
165 *
166 * @param storageDevice
167 */
168 public void setStorageDevice(org.globus.mds.glue.StorageDeviceType[] storageDevice) {
169 this.storageDevice = storageDevice;
170 }
171
172 public org.globus.mds.glue.StorageDeviceType getStorageDevice(int i) {
173 return this.storageDevice[i];
174 }
175
176 public void setStorageDevice(int i, org.globus.mds.glue.StorageDeviceType _value) {
177 this.storageDevice[i] = _value;
178 }
179
180
181 /***
182 * Gets the architecture value for this SubClusterOrHostType.
183 *
184 * @return architecture
185 */
186 public org.globus.mds.glue.ArchitectureType getArchitecture() {
187 return architecture;
188 }
189
190
191 /***
192 * Sets the architecture value for this SubClusterOrHostType.
193 *
194 * @param architecture
195 */
196 public void setArchitecture(org.globus.mds.glue.ArchitectureType architecture) {
197 this.architecture = architecture;
198 }
199
200
201 /***
202 * Gets the applicationSoftware value for this SubClusterOrHostType.
203 *
204 * @return applicationSoftware
205 */
206 public org.globus.mds.glue.ApplicationSoftwareType getApplicationSoftware() {
207 return applicationSoftware;
208 }
209
210
211 /***
212 * Sets the applicationSoftware value for this SubClusterOrHostType.
213 *
214 * @param applicationSoftware
215 */
216 public void setApplicationSoftware(org.globus.mds.glue.ApplicationSoftwareType applicationSoftware) {
217 this.applicationSoftware = applicationSoftware;
218 }
219
220
221 /***
222 * Gets the fileSystem value for this SubClusterOrHostType.
223 *
224 * @return fileSystem
225 */
226 public org.globus.mds.glue.FileSystemType[] getFileSystem() {
227 return fileSystem;
228 }
229
230
231 /***
232 * Sets the fileSystem value for this SubClusterOrHostType.
233 *
234 * @param fileSystem
235 */
236 public void setFileSystem(org.globus.mds.glue.FileSystemType[] fileSystem) {
237 this.fileSystem = fileSystem;
238 }
239
240 public org.globus.mds.glue.FileSystemType getFileSystem(int i) {
241 return this.fileSystem[i];
242 }
243
244 public void setFileSystem(int i, org.globus.mds.glue.FileSystemType _value) {
245 this.fileSystem[i] = _value;
246 }
247
248
249 /***
250 * Gets the networkAdapter value for this SubClusterOrHostType.
251 *
252 * @return networkAdapter
253 */
254 public org.globus.mds.glue.NetworkAdapterType[] getNetworkAdapter() {
255 return networkAdapter;
256 }
257
258
259 /***
260 * Sets the networkAdapter value for this SubClusterOrHostType.
261 *
262 * @param networkAdapter
263 */
264 public void setNetworkAdapter(org.globus.mds.glue.NetworkAdapterType[] networkAdapter) {
265 this.networkAdapter = networkAdapter;
266 }
267
268 public org.globus.mds.glue.NetworkAdapterType getNetworkAdapter(int i) {
269 return this.networkAdapter[i];
270 }
271
272 public void setNetworkAdapter(int i, org.globus.mds.glue.NetworkAdapterType _value) {
273 this.networkAdapter[i] = _value;
274 }
275
276
277 /***
278 * Gets the _any value for this SubClusterOrHostType.
279 *
280 * @return _any
281 */
282 public org.apache.axis.message.MessageElement [] get_any() {
283 return _any;
284 }
285
286
287 /***
288 * Sets the _any value for this SubClusterOrHostType.
289 *
290 * @param _any
291 */
292 public void set_any(org.apache.axis.message.MessageElement [] _any) {
293 this._any = _any;
294 }
295
296
297 /***
298 * Gets the name value for this SubClusterOrHostType.
299 *
300 * @return name
301 */
302 public java.lang.String getName() {
303 return name;
304 }
305
306
307 /***
308 * Sets the name value for this SubClusterOrHostType.
309 *
310 * @param name
311 */
312 public void setName(java.lang.String name) {
313 this.name = name;
314 }
315
316
317 /***
318 * Gets the uniqueID value for this SubClusterOrHostType.
319 *
320 * @return uniqueID
321 */
322 public java.lang.String getUniqueID() {
323 return uniqueID;
324 }
325
326
327 /***
328 * Sets the uniqueID value for this SubClusterOrHostType.
329 *
330 * @param uniqueID
331 */
332 public void setUniqueID(java.lang.String uniqueID) {
333 this.uniqueID = uniqueID;
334 }
335
336
337 /***
338 * Gets the informationServiceURL value for this SubClusterOrHostType.
339 *
340 * @return informationServiceURL
341 */
342 public org.apache.axis.types.URI getInformationServiceURL() {
343 return informationServiceURL;
344 }
345
346
347 /***
348 * Sets the informationServiceURL value for this SubClusterOrHostType.
349 *
350 * @param informationServiceURL
351 */
352 public void setInformationServiceURL(org.apache.axis.types.URI informationServiceURL) {
353 this.informationServiceURL = informationServiceURL;
354 }
355
356 private java.lang.Object __equalsCalc = null;
357 public synchronized boolean equals(java.lang.Object obj) {
358 if (!(obj instanceof SubClusterOrHostType)) return false;
359 SubClusterOrHostType other = (SubClusterOrHostType) obj;
360 if (obj == null) return false;
361 if (this == obj) return true;
362 if (__equalsCalc != null) {
363 return (__equalsCalc == obj);
364 }
365 __equalsCalc = obj;
366 boolean _equals;
367 _equals = true &&
368 ((this.benchmark==null && other.getBenchmark()==null) ||
369 (this.benchmark!=null &&
370 this.benchmark.equals(other.getBenchmark()))) &&
371 ((this.processor==null && other.getProcessor()==null) ||
372 (this.processor!=null &&
373 this.processor.equals(other.getProcessor()))) &&
374 ((this.mainMemory==null && other.getMainMemory()==null) ||
375 (this.mainMemory!=null &&
376 this.mainMemory.equals(other.getMainMemory()))) &&
377 ((this.operatingSystem==null && other.getOperatingSystem()==null) ||
378 (this.operatingSystem!=null &&
379 this.operatingSystem.equals(other.getOperatingSystem()))) &&
380 ((this.storageDevice==null && other.getStorageDevice()==null) ||
381 (this.storageDevice!=null &&
382 java.util.Arrays.equals(this.storageDevice, other.getStorageDevice()))) &&
383 ((this.architecture==null && other.getArchitecture()==null) ||
384 (this.architecture!=null &&
385 this.architecture.equals(other.getArchitecture()))) &&
386 ((this.applicationSoftware==null && other.getApplicationSoftware()==null) ||
387 (this.applicationSoftware!=null &&
388 this.applicationSoftware.equals(other.getApplicationSoftware()))) &&
389 ((this.fileSystem==null && other.getFileSystem()==null) ||
390 (this.fileSystem!=null &&
391 java.util.Arrays.equals(this.fileSystem, other.getFileSystem()))) &&
392 ((this.networkAdapter==null && other.getNetworkAdapter()==null) ||
393 (this.networkAdapter!=null &&
394 java.util.Arrays.equals(this.networkAdapter, other.getNetworkAdapter()))) &&
395 ((this._any==null && other.get_any()==null) ||
396 (this._any!=null &&
397 java.util.Arrays.equals(this._any, other.get_any()))) &&
398 ((this.name==null && other.getName()==null) ||
399 (this.name!=null &&
400 this.name.equals(other.getName()))) &&
401 ((this.uniqueID==null && other.getUniqueID()==null) ||
402 (this.uniqueID!=null &&
403 this.uniqueID.equals(other.getUniqueID()))) &&
404 ((this.informationServiceURL==null && other.getInformationServiceURL()==null) ||
405 (this.informationServiceURL!=null &&
406 this.informationServiceURL.equals(other.getInformationServiceURL())));
407 __equalsCalc = null;
408 return _equals;
409 }
410
411 private boolean __hashCodeCalc = false;
412 public synchronized int hashCode() {
413 if (__hashCodeCalc) {
414 return 0;
415 }
416 __hashCodeCalc = true;
417 int _hashCode = 1;
418 if (getBenchmark() != null) {
419 _hashCode += getBenchmark().hashCode();
420 }
421 if (getProcessor() != null) {
422 _hashCode += getProcessor().hashCode();
423 }
424 if (getMainMemory() != null) {
425 _hashCode += getMainMemory().hashCode();
426 }
427 if (getOperatingSystem() != null) {
428 _hashCode += getOperatingSystem().hashCode();
429 }
430 if (getStorageDevice() != null) {
431 for (int i=0;
432 i<java.lang.reflect.Array.getLength(getStorageDevice());
433 i++) {
434 java.lang.Object obj = java.lang.reflect.Array.get(getStorageDevice(), i);
435 if (obj != null &&
436 !obj.getClass().isArray()) {
437 _hashCode += obj.hashCode();
438 }
439 }
440 }
441 if (getArchitecture() != null) {
442 _hashCode += getArchitecture().hashCode();
443 }
444 if (getApplicationSoftware() != null) {
445 _hashCode += getApplicationSoftware().hashCode();
446 }
447 if (getFileSystem() != null) {
448 for (int i=0;
449 i<java.lang.reflect.Array.getLength(getFileSystem());
450 i++) {
451 java.lang.Object obj = java.lang.reflect.Array.get(getFileSystem(), i);
452 if (obj != null &&
453 !obj.getClass().isArray()) {
454 _hashCode += obj.hashCode();
455 }
456 }
457 }
458 if (getNetworkAdapter() != null) {
459 for (int i=0;
460 i<java.lang.reflect.Array.getLength(getNetworkAdapter());
461 i++) {
462 java.lang.Object obj = java.lang.reflect.Array.get(getNetworkAdapter(), i);
463 if (obj != null &&
464 !obj.getClass().isArray()) {
465 _hashCode += obj.hashCode();
466 }
467 }
468 }
469 if (get_any() != null) {
470 for (int i=0;
471 i<java.lang.reflect.Array.getLength(get_any());
472 i++) {
473 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
474 if (obj != null &&
475 !obj.getClass().isArray()) {
476 _hashCode += obj.hashCode();
477 }
478 }
479 }
480 if (getName() != null) {
481 _hashCode += getName().hashCode();
482 }
483 if (getUniqueID() != null) {
484 _hashCode += getUniqueID().hashCode();
485 }
486 if (getInformationServiceURL() != null) {
487 _hashCode += getInformationServiceURL().hashCode();
488 }
489 __hashCodeCalc = false;
490 return _hashCode;
491 }
492
493
494 private static org.apache.axis.description.TypeDesc typeDesc =
495 new org.apache.axis.description.TypeDesc(SubClusterOrHostType.class, true);
496
497 static {
498 typeDesc.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "SubClusterOrHostType"));
499 org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
500 attrField.setFieldName("name");
501 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Name"));
502 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
503 typeDesc.addFieldDesc(attrField);
504 attrField = new org.apache.axis.description.AttributeDesc();
505 attrField.setFieldName("uniqueID");
506 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "UniqueID"));
507 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
508 typeDesc.addFieldDesc(attrField);
509 attrField = new org.apache.axis.description.AttributeDesc();
510 attrField.setFieldName("informationServiceURL");
511 attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "InformationServiceURL"));
512 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyURI"));
513 typeDesc.addFieldDesc(attrField);
514 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
515 elemField.setFieldName("benchmark");
516 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Benchmark"));
517 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "BenchmarkType"));
518 elemField.setMinOccurs(0);
519 typeDesc.addFieldDesc(elemField);
520 elemField = new org.apache.axis.description.ElementDesc();
521 elemField.setFieldName("processor");
522 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Processor"));
523 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "ProcessorType"));
524 elemField.setMinOccurs(0);
525 typeDesc.addFieldDesc(elemField);
526 elemField = new org.apache.axis.description.ElementDesc();
527 elemField.setFieldName("mainMemory");
528 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "MainMemory"));
529 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "MainMemoryType"));
530 elemField.setMinOccurs(0);
531 typeDesc.addFieldDesc(elemField);
532 elemField = new org.apache.axis.description.ElementDesc();
533 elemField.setFieldName("operatingSystem");
534 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "OperatingSystem"));
535 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "OperatingSystemType"));
536 elemField.setMinOccurs(0);
537 typeDesc.addFieldDesc(elemField);
538 elemField = new org.apache.axis.description.ElementDesc();
539 elemField.setFieldName("storageDevice");
540 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "StorageDevice"));
541 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "StorageDeviceType"));
542 elemField.setMinOccurs(0);
543 typeDesc.addFieldDesc(elemField);
544 elemField = new org.apache.axis.description.ElementDesc();
545 elemField.setFieldName("architecture");
546 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Architecture"));
547 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "ArchitectureType"));
548 elemField.setMinOccurs(0);
549 typeDesc.addFieldDesc(elemField);
550 elemField = new org.apache.axis.description.ElementDesc();
551 elemField.setFieldName("applicationSoftware");
552 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "ApplicationSoftware"));
553 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "ApplicationSoftwareType"));
554 elemField.setMinOccurs(0);
555 typeDesc.addFieldDesc(elemField);
556 elemField = new org.apache.axis.description.ElementDesc();
557 elemField.setFieldName("fileSystem");
558 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "FileSystem"));
559 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "FileSystemType"));
560 elemField.setMinOccurs(0);
561 typeDesc.addFieldDesc(elemField);
562 elemField = new org.apache.axis.description.ElementDesc();
563 elemField.setFieldName("networkAdapter");
564 elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "NetworkAdapter"));
565 elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "NetworkAdapterType"));
566 elemField.setMinOccurs(0);
567 typeDesc.addFieldDesc(elemField);
568 }
569
570 /***
571 * Return type metadata object
572 */
573 public static org.apache.axis.description.TypeDesc getTypeDesc() {
574 return typeDesc;
575 }
576
577 /***
578 * Get Custom Serializer
579 */
580 public static org.apache.axis.encoding.Serializer getSerializer(
581 java.lang.String mechType,
582 java.lang.Class _javaType,
583 javax.xml.namespace.QName _xmlType) {
584 return
585 new org.apache.axis.encoding.ser.BeanSerializer(
586 _javaType, _xmlType, typeDesc);
587 }
588
589 /***
590 * Get Custom Deserializer
591 */
592 public static org.apache.axis.encoding.Deserializer getDeserializer(
593 java.lang.String mechType,
594 java.lang.Class _javaType,
595 javax.xml.namespace.QName _xmlType) {
596 return
597 new org.apache.axis.encoding.ser.BeanDeserializer(
598 _javaType, _xmlType, typeDesc);
599 }
600
601 }