1
2
3
4
5
6
7
8 package org.ogf.srm22;
9
10 public class TStatusCode implements java.io.Serializable {
11 private java.lang.String _value_;
12 private static java.util.HashMap _table_ = new java.util.HashMap();
13
14
15 protected TStatusCode(java.lang.String value) {
16 _value_ = value;
17 _table_.put(_value_,this);
18 }
19
20 public static final java.lang.String _SRM_SUCCESS = "SRM_SUCCESS";
21 public static final java.lang.String _SRM_FAILURE = "SRM_FAILURE";
22 public static final java.lang.String _SRM_AUTHENTICATION_FAILURE = "SRM_AUTHENTICATION_FAILURE";
23 public static final java.lang.String _SRM_AUTHORIZATION_FAILURE = "SRM_AUTHORIZATION_FAILURE";
24 public static final java.lang.String _SRM_INVALID_REQUEST = "SRM_INVALID_REQUEST";
25 public static final java.lang.String _SRM_INVALID_PATH = "SRM_INVALID_PATH";
26 public static final java.lang.String _SRM_FILE_LIFETIME_EXPIRED = "SRM_FILE_LIFETIME_EXPIRED";
27 public static final java.lang.String _SRM_SPACE_LIFETIME_EXPIRED = "SRM_SPACE_LIFETIME_EXPIRED";
28 public static final java.lang.String _SRM_EXCEED_ALLOCATION = "SRM_EXCEED_ALLOCATION";
29 public static final java.lang.String _SRM_NO_USER_SPACE = "SRM_NO_USER_SPACE";
30 public static final java.lang.String _SRM_NO_FREE_SPACE = "SRM_NO_FREE_SPACE";
31 public static final java.lang.String _SRM_DUPLICATION_ERROR = "SRM_DUPLICATION_ERROR";
32 public static final java.lang.String _SRM_NON_EMPTY_DIRECTORY = "SRM_NON_EMPTY_DIRECTORY";
33 public static final java.lang.String _SRM_TOO_MANY_RESULTS = "SRM_TOO_MANY_RESULTS";
34 public static final java.lang.String _SRM_INTERNAL_ERROR = "SRM_INTERNAL_ERROR";
35 public static final java.lang.String _SRM_FATAL_INTERNAL_ERROR = "SRM_FATAL_INTERNAL_ERROR";
36 public static final java.lang.String _SRM_NOT_SUPPORTED = "SRM_NOT_SUPPORTED";
37 public static final java.lang.String _SRM_REQUEST_QUEUED = "SRM_REQUEST_QUEUED";
38 public static final java.lang.String _SRM_REQUEST_INPROGRESS = "SRM_REQUEST_INPROGRESS";
39 public static final java.lang.String _SRM_REQUEST_SUSPENDED = "SRM_REQUEST_SUSPENDED";
40 public static final java.lang.String _SRM_ABORTED = "SRM_ABORTED";
41 public static final java.lang.String _SRM_RELEASED = "SRM_RELEASED";
42 public static final java.lang.String _SRM_FILE_PINNED = "SRM_FILE_PINNED";
43 public static final java.lang.String _SRM_FILE_IN_CACHE = "SRM_FILE_IN_CACHE";
44 public static final java.lang.String _SRM_SPACE_AVAILABLE = "SRM_SPACE_AVAILABLE";
45 public static final java.lang.String _SRM_LOWER_SPACE_GRANTED = "SRM_LOWER_SPACE_GRANTED";
46 public static final java.lang.String _SRM_DONE = "SRM_DONE";
47 public static final java.lang.String _SRM_PARTIAL_SUCCESS = "SRM_PARTIAL_SUCCESS";
48 public static final java.lang.String _SRM_REQUEST_TIMED_OUT = "SRM_REQUEST_TIMED_OUT";
49 public static final java.lang.String _SRM_LAST_COPY = "SRM_LAST_COPY";
50 public static final java.lang.String _SRM_FILE_BUSY = "SRM_FILE_BUSY";
51 public static final java.lang.String _SRM_FILE_LOST = "SRM_FILE_LOST";
52 public static final java.lang.String _SRM_FILE_UNAVAILABLE = "SRM_FILE_UNAVAILABLE";
53 public static final java.lang.String _SRM_CUSTOM_STATUS = "SRM_CUSTOM_STATUS";
54 public static final TStatusCode SRM_SUCCESS = new TStatusCode(_SRM_SUCCESS);
55 public static final TStatusCode SRM_FAILURE = new TStatusCode(_SRM_FAILURE);
56 public static final TStatusCode SRM_AUTHENTICATION_FAILURE = new TStatusCode(_SRM_AUTHENTICATION_FAILURE);
57 public static final TStatusCode SRM_AUTHORIZATION_FAILURE = new TStatusCode(_SRM_AUTHORIZATION_FAILURE);
58 public static final TStatusCode SRM_INVALID_REQUEST = new TStatusCode(_SRM_INVALID_REQUEST);
59 public static final TStatusCode SRM_INVALID_PATH = new TStatusCode(_SRM_INVALID_PATH);
60 public static final TStatusCode SRM_FILE_LIFETIME_EXPIRED = new TStatusCode(_SRM_FILE_LIFETIME_EXPIRED);
61 public static final TStatusCode SRM_SPACE_LIFETIME_EXPIRED = new TStatusCode(_SRM_SPACE_LIFETIME_EXPIRED);
62 public static final TStatusCode SRM_EXCEED_ALLOCATION = new TStatusCode(_SRM_EXCEED_ALLOCATION);
63 public static final TStatusCode SRM_NO_USER_SPACE = new TStatusCode(_SRM_NO_USER_SPACE);
64 public static final TStatusCode SRM_NO_FREE_SPACE = new TStatusCode(_SRM_NO_FREE_SPACE);
65 public static final TStatusCode SRM_DUPLICATION_ERROR = new TStatusCode(_SRM_DUPLICATION_ERROR);
66 public static final TStatusCode SRM_NON_EMPTY_DIRECTORY = new TStatusCode(_SRM_NON_EMPTY_DIRECTORY);
67 public static final TStatusCode SRM_TOO_MANY_RESULTS = new TStatusCode(_SRM_TOO_MANY_RESULTS);
68 public static final TStatusCode SRM_INTERNAL_ERROR = new TStatusCode(_SRM_INTERNAL_ERROR);
69 public static final TStatusCode SRM_FATAL_INTERNAL_ERROR = new TStatusCode(_SRM_FATAL_INTERNAL_ERROR);
70 public static final TStatusCode SRM_NOT_SUPPORTED = new TStatusCode(_SRM_NOT_SUPPORTED);
71 public static final TStatusCode SRM_REQUEST_QUEUED = new TStatusCode(_SRM_REQUEST_QUEUED);
72 public static final TStatusCode SRM_REQUEST_INPROGRESS = new TStatusCode(_SRM_REQUEST_INPROGRESS);
73 public static final TStatusCode SRM_REQUEST_SUSPENDED = new TStatusCode(_SRM_REQUEST_SUSPENDED);
74 public static final TStatusCode SRM_ABORTED = new TStatusCode(_SRM_ABORTED);
75 public static final TStatusCode SRM_RELEASED = new TStatusCode(_SRM_RELEASED);
76 public static final TStatusCode SRM_FILE_PINNED = new TStatusCode(_SRM_FILE_PINNED);
77 public static final TStatusCode SRM_FILE_IN_CACHE = new TStatusCode(_SRM_FILE_IN_CACHE);
78 public static final TStatusCode SRM_SPACE_AVAILABLE = new TStatusCode(_SRM_SPACE_AVAILABLE);
79 public static final TStatusCode SRM_LOWER_SPACE_GRANTED = new TStatusCode(_SRM_LOWER_SPACE_GRANTED);
80 public static final TStatusCode SRM_DONE = new TStatusCode(_SRM_DONE);
81 public static final TStatusCode SRM_PARTIAL_SUCCESS = new TStatusCode(_SRM_PARTIAL_SUCCESS);
82 public static final TStatusCode SRM_REQUEST_TIMED_OUT = new TStatusCode(_SRM_REQUEST_TIMED_OUT);
83 public static final TStatusCode SRM_LAST_COPY = new TStatusCode(_SRM_LAST_COPY);
84 public static final TStatusCode SRM_FILE_BUSY = new TStatusCode(_SRM_FILE_BUSY);
85 public static final TStatusCode SRM_FILE_LOST = new TStatusCode(_SRM_FILE_LOST);
86 public static final TStatusCode SRM_FILE_UNAVAILABLE = new TStatusCode(_SRM_FILE_UNAVAILABLE);
87 public static final TStatusCode SRM_CUSTOM_STATUS = new TStatusCode(_SRM_CUSTOM_STATUS);
88 public java.lang.String getValue() { return _value_;}
89 public static TStatusCode fromValue(java.lang.String value)
90 throws java.lang.IllegalArgumentException {
91 TStatusCode enumeration = (TStatusCode)
92 _table_.get(value);
93 if (enumeration==null) throw new java.lang.IllegalArgumentException();
94 return enumeration;
95 }
96 public static TStatusCode fromString(java.lang.String value)
97 throws java.lang.IllegalArgumentException {
98 return fromValue(value);
99 }
100 public boolean equals(java.lang.Object obj) {return (obj == this);}
101 public int hashCode() { return toString().hashCode();}
102 public java.lang.String toString() { return _value_;}
103 public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
104 public static org.apache.axis.encoding.Serializer getSerializer(
105 java.lang.String mechType,
106 java.lang.Class _javaType,
107 javax.xml.namespace.QName _xmlType) {
108 return
109 new org.apache.axis.encoding.ser.EnumSerializer(
110 _javaType, _xmlType);
111 }
112 public static org.apache.axis.encoding.Deserializer getDeserializer(
113 java.lang.String mechType,
114 java.lang.Class _javaType,
115 javax.xml.namespace.QName _xmlType) {
116 return
117 new org.apache.axis.encoding.ser.EnumDeserializer(
118 _javaType, _xmlType);
119 }
120
121 private static org.apache.axis.description.TypeDesc typeDesc =
122 new org.apache.axis.description.TypeDesc(TStatusCode.class);
123
124 static {
125 typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TStatusCode"));
126 }
127
128
129
130 public static org.apache.axis.description.TypeDesc getTypeDesc() {
131 return typeDesc;
132 }
133
134 }