1 karl 1.3 //%2004////////////////////////////////////////////////////////////////////////
|
2 kumpf 1.1 //
|
3 karl 1.3 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 kumpf 1.1 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.3 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 kumpf 1.1 //
10 // Permission is hereby granted, free of charge, to any person obtaining a copy
11 // of this software and associated documentation files (the "Software"), to
12 // deal in the Software without restriction, including without limitation the
13 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14 // sell copies of the Software, and to permit persons to whom the Software is
15 // furnished to do so, subject to the following conditions:
16 //
17 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
18 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
19 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
20 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 //
26 //==============================================================================
27 //
28 // Author: Carol Ann Krug Graves, Hewlett-Packard Company
29 // (carolann_graves@hp.com)
30 kumpf 1.1 //
31 // Modified By:
32 //
33 //%/////////////////////////////////////////////////////////////////////////////
34
35 #ifndef Pegasus_IndicationConstants_h
36 #define Pegasus_IndicationConstants_h
37
38 #include <Pegasus/Common/Config.h>
39 #include <Pegasus/Common/CIMName.h>
40
41 PEGASUS_NAMESPACE_BEGIN
42
43 /**
44 Values for the Subscription State property of the Subscription class,
45 as defined in the CIM Events MOF
46 */
47 enum SubscriptionState {_STATE_UNKNOWN = 0, _STATE_OTHER = 1,
48 _STATE_ENABLED = 2, _STATE_ENABLEDDEGRADED = 3, _STATE_DISABLED = 4};
49
50 /**
51 kumpf 1.1 Values for the Repeat Notification Policy property of the Subscription
52 class, as defined in the CIM Events MOF
53 */
54 enum RepeatNotificationPolicy {_POLICY_UNKNOWN = 0, _POLICY_OTHER = 1,
55 _POLICY_NONE = 2, _POLICY_SUPPRESS = 3, _POLICY_DELAY = 4};
56
57 /**
58 Values for the On Fatal Error Policy property of the Subscription
59 class, as defined in the CIM Events MOF
60 */
61 enum OnFatalErrorPolicy {_ERRORPOLICY_OTHER = 1, _ERRORPOLICY_IGNORE = 2,
62 _ERRORPOLICY_DISABLE = 3, _ERRORPOLICY_REMOVE = 4};
63
64 /**
65 Values for the Persistence Type property of the Handler class,
66 as defined in the CIM Events MOF
67 */
68 enum PersistenceType {_PERSISTENCE_OTHER = 1, _PERSISTENCE_PERMANENT = 2,
69 _PERSISTENCE_TRANSIENT = 3};
70
71 /**
72 kumpf 1.1 Values for the Perceived Severity property of the Alert Indication
73 class, as defined in the CIM Events MOF
74 */
75 enum PerceivedSeverity {_SEVERITY_UNKNOWN = 0, _SEVERITY_OTHER = 1,
76 _SEVERITY_INFORMATION = 2, _SEVERITY_WARNING = 3, _SEVERITY_MINOR = 4,
77 _SEVERITY_MAJOR = 5, _SEVERITY_CRITICAL = 6, _SEVERITY_FATAL = 7};
78
79 /**
80 Values for the Probable Cause property of the Alert Indication
81 class, as defined in the CIM Events MOF
82 Note: not all possible values have been included
83 */
84 enum ProbableCause {_CAUSE_UNKNOWN = 0, _CAUSE_OTHER = 1};
85
86 /**
87 Values for the Alert Type property of the Alert Indication class,
88 as defined in the CIM Events MOF
89 */
90 enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
91 _TYPE_PROCESSING = 4, _TYPE_DEVICE = 5, _TYPE_ENVIRONMENTAL = 6,
92 _TYPE_MODELCHANGE = 7, _TYPE_SECURITY = 8};
93 kumpf 1.1
94 //
95 // Class names
96 //
97
98 /**
99 The name of the CIMOM Shutdown alert indication class
100 */
101 //
102 // ATTN: Update once CimomShutdownAlertIndication has been defined
103 //
104 static const CIMName _CLASS_CIMOM_SHUTDOWN_ALERT =
105 CIMName ("CIM_AlertIndication");
106
107 /**
108 The name of the No Provider alert indication class
109 */
110 //
111 // ATTN: Update once NoProviderAlertIndication has been defined
112 //
113 static const CIMName _CLASS_NO_PROVIDER_ALERT = CIMName ("CIM_AlertIndication");
114 kumpf 1.1
115 /**
116 The name of the CIMOM shutdown alert indication class
117 */
118 //
119 // ATTN: Update once ProviderTerminatedAlertIndication has been defined
120 //
121 static const CIMName _CLASS_PROVIDER_TERMINATED_ALERT =
122 CIMName ("CIM_AlertIndication");
123
124
125 //
126 // Property names
127 //
128
129 /**
|
130 kumpf 1.2 The name of the Filter reference property for indication subscription class
|
131 kumpf 1.1 */
132 static const CIMName _PROPERTY_FILTER = CIMName ("Filter");
133
134 /**
|
135 kumpf 1.2 The name of the Handler reference property for indication subscription class
|
136 kumpf 1.1 */
137 static const CIMName _PROPERTY_HANDLER = CIMName ("Handler");
138
139 /**
|
140 kumpf 1.2 The name of the Subscription State property for indication subscription
|
141 kumpf 1.1 class
142 */
143 static const CIMName _PROPERTY_STATE = CIMName ("SubscriptionState");
144
145 /**
146 The name of the Other Subscription State property for Indication
147 Subscription class
148 */
149 static const CIMName _PROPERTY_OTHERSTATE = CIMName ("OtherSubscriptionState");
150
151 /**
|
152 kumpf 1.2 The name of the Repeat Notification Policy property for indication
|
153 kumpf 1.1 subscription class
154 */
155 static const CIMName _PROPERTY_REPEATNOTIFICATIONPOLICY =
156 CIMName ("RepeatNotificationPolicy");
157
158 /**
|
159 kumpf 1.2 The name of the Other Repeat Notification Policy property for
|
160 kumpf 1.1 indication subscription class
161 */
162 static const CIMName _PROPERTY_OTHERREPEATNOTIFICATIONPOLICY =
163 CIMName ("OtherRepeatNotificationPolicy");
164
165 /**
166 The name of the On Fatal Error Policy property for Indication Subscription
167 class
168 */
169 static const CIMName _PROPERTY_ONFATALERRORPOLICY =
170 CIMName ("OnFatalErrorPolicy");
171
172 /**
173 The name of the Other On Fatal Error Policy property for Indication
174 Subscription class
175 */
176 static const CIMName _PROPERTY_OTHERONFATALERRORPOLICY =
177 CIMName ("OtherOnFatalErrorPolicy");
178
179 /**
|
180 kumpf 1.2 The name of the Failure Trigger Time Interval property for Indication
181 Subscription class
182 */
183 static const CIMName _PROPERTY_FAILURETRIGGERTIMEINTERVAL =
184 CIMName ("FailureTriggerTimeInterval");
185
186 /**
|
187 kumpf 1.1 The name of the Time Of Last State Change property for Indication
188 Subscription class
189 */
190 static const CIMName _PROPERTY_LASTCHANGE = CIMName ("TimeOfLastStateChange");
191
192 /**
193 The name of the Subscription Start Time property for Indication
194 Subscription class
195 */
196 static const CIMName _PROPERTY_STARTTIME = CIMName ("SubscriptionStartTime");
197
198 /**
199 The name of the Subscription Duration property for Indication
200 Subscription class
201 */
202 static const CIMName _PROPERTY_DURATION = CIMName ("SubscriptionDuration");
203
204 /**
205 The name of the Subscription Time Remaining property for Indication
206 Subscription class
207 */
208 kumpf 1.1 static const CIMName _PROPERTY_TIMEREMAINING =
209 CIMName ("SubscriptionTimeRemaining");
210
211 /**
|
212 kumpf 1.2 The name of the Repeat Notification Interval property for indication
213 subscription class
214 */
215 static const CIMName _PROPERTY_REPEATNOTIFICATIONINTERVAL =
216 CIMName ("RepeatNotificationInterval");
217
218 /**
219 The name of the Repeat Notification Gap property for indication
220 subscription class
221 */
222 static const CIMName _PROPERTY_REPEATNOTIFICATIONGAP =
223 CIMName ("RepeatNotificationGap");
224
225 /**
226 The name of the Repeat Notification Count property for indication
227 subscription class
228 */
229 static const CIMName _PROPERTY_REPEATNOTIFICATIONCOUNT =
230 CIMName ("RepeatNotificationCount");
231
232 /**
233 kumpf 1.2 The name of the Query property for indication filter class
|
234 kumpf 1.1 */
235 static const CIMName _PROPERTY_QUERY = CIMName ("Query");
236
237 /**
|
238 kumpf 1.2 The name of the Query Language property for indication filter class
|
239 kumpf 1.1 */
240 static const CIMName _PROPERTY_QUERYLANGUAGE = CIMName ("QueryLanguage");
241
242 /**
243 The name of the Source Namespace property for indication filter class
244 */
245 static const CIMName _PROPERTY_SOURCENAMESPACE = CIMName ("SourceNamespace");
246
247 /**
|
248 kumpf 1.2 The name of the Name property for indication filter and indications handler classes
|
249 kumpf 1.1 */
250 static const CIMName _PROPERTY_NAME = CIMName ("Name");
251
252 /**
|
253 kumpf 1.2 The name of the Creation Class Name property for indication filter and
|
254 kumpf 1.1 indications handler classes
255 */
256 static const CIMName _PROPERTY_CREATIONCLASSNAME =
257 CIMName ("CreationClassName");
258
259 /**
|
260 kumpf 1.2 The name of the System Name property for indication filter and indications
|
261 kumpf 1.1 handler classes
262 */
263 static const CIMName _PROPERTY_SYSTEMNAME = CIMName ("SystemName");
264
265 /**
|
266 kumpf 1.2 The name of the System Creation Class Name property for indication filter
|
267 kumpf 1.1 and indications handler classes
268 */
269 static const CIMName _PROPERTY_SYSTEMCREATIONCLASSNAME =
270 CIMName ("SystemCreationClassName");
271
272 /**
273 The name of the Persistence Type property for Indication Handler class
274 */
275 static const CIMName _PROPERTY_PERSISTENCETYPE = CIMName ("PersistenceType");
276
277 /**
278 The name of the Other Persistence Type property for Indication Handler
279 class
280 */
281 static const CIMName _PROPERTY_OTHERPERSISTENCETYPE =
282 CIMName ("OtherPersistenceType");
283
284 /**
|
285 kumpf 1.2 The name of the Owner property for Indication Handler class
286 */
287 static const CIMName _PROPERTY_OWNER = CIMName ("Owner");
288
289 /**
|
290 kumpf 1.1 The name of the Destination property for CIM XML Indication Handler
291 subclass
292 */
293 static const CIMName _PROPERTY_DESTINATION = CIMName ("Destination");
294
295 /**
296 The name of the TargetHost property for SNMP Mapper Indication
297 Handler subclass
298 */
299 static const CIMName _PROPERTY_TARGETHOST = CIMName ("TargetHost");
300
301 /**
|
302 kumpf 1.2 The name of the TargetHostFormat property for SNMP Mapper Indication
303 Handler subclass
|
304 kumpf 1.1 */
305 static const CIMName _PROPERTY_TARGETHOSTFORMAT = CIMName ("TargetHostFormat");
306
307 /**
|
308 kumpf 1.2 The name of the SNMP Version property for SNMP Mapper Indication Handler
309 subclass
|
310 kumpf 1.1 */
311 static const CIMName _PROPERTY_SNMPVERSION = CIMName ("SNMPVersion");
|
312 kumpf 1.2
313 /**
314 The name of the Port Number property for SNMP Mapper Indication Handler
315 subclass
316 */
317 static const CIMName _PROPERTY_PORTNUMBER = CIMName ("PortNumber");
318
319 /**
320 The name of the SNMP Security Name property for SNMP Mapper Indication
321 Handler subclass
322 */
323 static const CIMName _PROPERTY_SNMPSECURITYNAME = CIMName ("SNMPSecurityName");
324
325 /**
326 The name of the SNMP Engine ID property for SNMP Mapper Indication Handler
327 subclass
328 */
329 static const CIMName _PROPERTY_SNMPENGINEID = CIMName ("SNMPEngineID");
|
330 kumpf 1.1
331 /**
332 The name of the Alert Type property for Alert Indication class
333 */
334 static const CIMName _PROPERTY_ALERTTYPE = CIMName ("AlertType");
335
336 /**
337 The name of the Other Alert Type property for Alert Indication class
338 */
339 static const CIMName _PROPERTY_OTHERALERTTYPE = CIMName ("OtherAlertType");
340
341 /**
342 The name of the Perceived Severity property for Alert Indication class
343 */
344 static const CIMName _PROPERTY_PERCEIVEDSEVERITY =
345 CIMName ("PerceivedSeverity");
346
347 /**
348 The name of the Probable Cause property for Alert Indication class
349 */
350 static const CIMName _PROPERTY_PROBABLECAUSE = CIMName ("ProbableCause");
351 kumpf 1.1
352
353 //
354 // Qualifier names
355 //
356
357 /**
358 The name of the Indication qualifier for classes
359 */
360 static const CIMName _QUALIFIER_INDICATION = CIMName ("INDICATION");
361
362
363 //
364 // Other literal values
365 //
366
367 /**
368 The WHERE keyword in WQL
369 */
370 static const char _QUERY_WHERE [] = "WHERE";
371
372 kumpf 1.1 /**
373 A zero value CIMDateTime interval
374 */
375 static const char _ZERO_INTERVAL_STRING [] = "00000000000000.000000:000";
376
377 PEGASUS_NAMESPACE_END
378
379 #endif /* Pegasus_IndicationConstants_h */
|