1
2
3
4
5
6
7
8 package org.ogf.srm11.bean;
9
10 public class RequestFileStatus extends org.ogf.srm11.bean.FileMetaData implements java.io.Serializable {
11 private java.lang.String state;
12
13 private int fileId;
14
15 private java.lang.String TURL;
16
17 private int estSecondsToStart;
18
19 private java.lang.String sourceFilename;
20
21 private java.lang.String destFilename;
22
23 private int queueOrder;
24
25 public RequestFileStatus() {
26 }
27
28 public RequestFileStatus(
29 java.lang.String SURL,
30 long size,
31 java.lang.String owner,
32 java.lang.String group,
33 int permMode,
34 java.lang.String checksumType,
35 java.lang.String checksumValue,
36 boolean isPinned,
37 boolean isPermanent,
38 boolean isCached,
39 java.lang.String state,
40 int fileId,
41 java.lang.String TURL,
42 int estSecondsToStart,
43 java.lang.String sourceFilename,
44 java.lang.String destFilename,
45 int queueOrder) {
46 super(
47 SURL,
48 size,
49 owner,
50 group,
51 permMode,
52 checksumType,
53 checksumValue,
54 isPinned,
55 isPermanent,
56 isCached);
57 this.state = state;
58 this.fileId = fileId;
59 this.TURL = TURL;
60 this.estSecondsToStart = estSecondsToStart;
61 this.sourceFilename = sourceFilename;
62 this.destFilename = destFilename;
63 this.queueOrder = queueOrder;
64 }
65
66
67
68
69
70
71
72 public java.lang.String getState() {
73 return state;
74 }
75
76
77
78
79
80
81
82 public void setState(java.lang.String state) {
83 this.state = state;
84 }
85
86
87
88
89
90
91
92 public int getFileId() {
93 return fileId;
94 }
95
96
97
98
99
100
101
102 public void setFileId(int fileId) {
103 this.fileId = fileId;
104 }
105
106
107
108
109
110
111
112 public java.lang.String getTURL() {
113 return TURL;
114 }
115
116
117
118
119
120
121
122 public void setTURL(java.lang.String TURL) {
123 this.TURL = TURL;
124 }
125
126
127
128
129
130
131
132 public int getEstSecondsToStart() {
133 return estSecondsToStart;
134 }
135
136
137
138
139
140
141
142 public void setEstSecondsToStart(int estSecondsToStart) {
143 this.estSecondsToStart = estSecondsToStart;
144 }
145
146
147
148
149
150
151
152 public java.lang.String getSourceFilename() {
153 return sourceFilename;
154 }
155
156
157
158
159
160
161
162 public void setSourceFilename(java.lang.String sourceFilename) {
163 this.sourceFilename = sourceFilename;
164 }
165
166
167
168
169
170
171
172 public java.lang.String getDestFilename() {
173 return destFilename;
174 }
175
176
177
178
179
180
181
182 public void setDestFilename(java.lang.String destFilename) {
183 this.destFilename = destFilename;
184 }
185
186
187
188
189
190
191
192 public int getQueueOrder() {
193 return queueOrder;
194 }
195
196
197
198
199
200
201
202 public void setQueueOrder(int queueOrder) {
203 this.queueOrder = queueOrder;
204 }
205
206 private java.lang.Object __equalsCalc = null;
207 public synchronized boolean equals(java.lang.Object obj) {
208 if (!(obj instanceof RequestFileStatus)) return false;
209 RequestFileStatus other = (RequestFileStatus) obj;
210 if (obj == null) return false;
211 if (this == obj) return true;
212 if (__equalsCalc != null) {
213 return (__equalsCalc == obj);
214 }
215 __equalsCalc = obj;
216 boolean _equals;
217 _equals = super.equals(obj) &&
218 ((this.state==null && other.getState()==null) ||
219 (this.state!=null &&
220 this.state.equals(other.getState()))) &&
221 this.fileId == other.getFileId() &&
222 ((this.TURL==null && other.getTURL()==null) ||
223 (this.TURL!=null &&
224 this.TURL.equals(other.getTURL()))) &&
225 this.estSecondsToStart == other.getEstSecondsToStart() &&
226 ((this.sourceFilename==null && other.getSourceFilename()==null) ||
227 (this.sourceFilename!=null &&
228 this.sourceFilename.equals(other.getSourceFilename()))) &&
229 ((this.destFilename==null && other.getDestFilename()==null) ||
230 (this.destFilename!=null &&
231 this.destFilename.equals(other.getDestFilename()))) &&
232 this.queueOrder == other.getQueueOrder();
233 __equalsCalc = null;
234 return _equals;
235 }
236
237 private boolean __hashCodeCalc = false;
238 public synchronized int hashCode() {
239 if (__hashCodeCalc) {
240 return 0;
241 }
242 __hashCodeCalc = true;
243 int _hashCode = super.hashCode();
244 if (getState() != null) {
245 _hashCode += getState().hashCode();
246 }
247 _hashCode += getFileId();
248 if (getTURL() != null) {
249 _hashCode += getTURL().hashCode();
250 }
251 _hashCode += getEstSecondsToStart();
252 if (getSourceFilename() != null) {
253 _hashCode += getSourceFilename().hashCode();
254 }
255 if (getDestFilename() != null) {
256 _hashCode += getDestFilename().hashCode();
257 }
258 _hashCode += getQueueOrder();
259 __hashCodeCalc = false;
260 return _hashCode;
261 }
262
263
264 private static org.apache.axis.description.TypeDesc typeDesc =
265 new org.apache.axis.description.TypeDesc(RequestFileStatus.class, true);
266
267 static {
268 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.themindelectric.com/package/diskCacheV111.srm/", "RequestFileStatus"));
269 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
270 elemField.setFieldName("state");
271 elemField.setXmlName(new javax.xml.namespace.QName("", "state"));
272 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
273 elemField.setNillable(true);
274 typeDesc.addFieldDesc(elemField);
275 elemField = new org.apache.axis.description.ElementDesc();
276 elemField.setFieldName("fileId");
277 elemField.setXmlName(new javax.xml.namespace.QName("", "fileId"));
278 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
279 elemField.setNillable(false);
280 typeDesc.addFieldDesc(elemField);
281 elemField = new org.apache.axis.description.ElementDesc();
282 elemField.setFieldName("TURL");
283 elemField.setXmlName(new javax.xml.namespace.QName("", "TURL"));
284 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
285 elemField.setNillable(true);
286 typeDesc.addFieldDesc(elemField);
287 elemField = new org.apache.axis.description.ElementDesc();
288 elemField.setFieldName("estSecondsToStart");
289 elemField.setXmlName(new javax.xml.namespace.QName("", "estSecondsToStart"));
290 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
291 elemField.setNillable(false);
292 typeDesc.addFieldDesc(elemField);
293 elemField = new org.apache.axis.description.ElementDesc();
294 elemField.setFieldName("sourceFilename");
295 elemField.setXmlName(new javax.xml.namespace.QName("", "sourceFilename"));
296 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
297 elemField.setNillable(true);
298 typeDesc.addFieldDesc(elemField);
299 elemField = new org.apache.axis.description.ElementDesc();
300 elemField.setFieldName("destFilename");
301 elemField.setXmlName(new javax.xml.namespace.QName("", "destFilename"));
302 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
303 elemField.setNillable(true);
304 typeDesc.addFieldDesc(elemField);
305 elemField = new org.apache.axis.description.ElementDesc();
306 elemField.setFieldName("queueOrder");
307 elemField.setXmlName(new javax.xml.namespace.QName("", "queueOrder"));
308 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
309 elemField.setNillable(false);
310 typeDesc.addFieldDesc(elemField);
311 }
312
313
314
315
316 public static org.apache.axis.description.TypeDesc getTypeDesc() {
317 return typeDesc;
318 }
319
320
321
322
323 public static org.apache.axis.encoding.Serializer getSerializer(
324 java.lang.String mechType,
325 java.lang.Class _javaType,
326 javax.xml.namespace.QName _xmlType) {
327 return
328 new org.apache.axis.encoding.ser.BeanSerializer(
329 _javaType, _xmlType, typeDesc);
330 }
331
332
333
334
335 public static org.apache.axis.encoding.Deserializer getDeserializer(
336 java.lang.String mechType,
337 java.lang.Class _javaType,
338 javax.xml.namespace.QName _xmlType) {
339 return
340 new org.apache.axis.encoding.ser.BeanDeserializer(
341 _javaType, _xmlType, typeDesc);
342 }
343
344 }