⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wet_schema.mof

📁 Pegasus is an open-source implementationof the DMTF CIM and WBEM standards. It is designed to be por
💻 MOF
📖 第 1 页 / 共 5 页
字号:
// The following classes definitions were based on the DMTF // CIM_Core25.MOF. However, this file is used to trigger// various test senarios and therefore may be modified in// ways that are not consistent with the DMTF definition.// For this reason, all CIM_ class names have been changed// to WET_ (WbemExec Test) to avoid any confusion.// ==================================================================// Qualifiers// ==================================================================Qualifier Abstract : boolean = false, Scope(class, association,     indication), Flavor(DisableOverride, Restricted);Qualifier Aggregate: boolean = false, Scope (reference),    Flavor(DisableOverride);Qualifier Aggregation : boolean = false, Scope(association),    Flavor(DisableOverride);Qualifier Alias : string = null, Scope(property, reference,     method), Flavor(Translatable);Qualifier ArrayType : string = "Bag", Scope(property, parameter);Qualifier Association : boolean = false, Scope(class, association),       Flavor(DisableOverride);Qualifier BitMap : string[], Scope(property, method, parameter);Qualifier BitValues : string[], Scope(property, method,    parameter), Flavor(Translatable);Qualifier Counter : boolean = false, Scope(property, method,     parameter);Qualifier Delete : boolean = false, Scope(association, reference);Qualifier Deprecated : string [], Scope(class, association, property, method);Qualifier Description : string = null, Scope(any),     Flavor(Translatable);Qualifier DisplayName : string = null, Scope(any),    Flavor(Translatable);Qualifier DN : boolean=false,     Scope(property, parameter), Flavor(DisableOverride); Qualifier EmbeddedObject : boolean = false, Scope(property);Qualifier Expensive : boolean = false,     Scope(property, reference, method, class, association);Qualifier Experimental : boolean = false,     Scope(any), Flavor (DisableOverride); Qualifier Gauge : boolean = false, Scope(property, method,     parameter);Qualifier Ifdeleted : boolean = false, Scope(association,     reference);Qualifier In : boolean = true, Scope(parameter),    Flavor(DisableOverride);Qualifier Indication : boolean = false, Scope(class, indication),     Flavor(DisableOverride);Qualifier Invisible : boolean = false,    Scope(reference, association, class, property, method);Qualifier Key : boolean = false, Scope(property, reference),     Flavor(DisableOverride);Qualifier Large : boolean = false, Scope(property, class);Qualifier MappingStrings : string[],    Scope(class, property, association, indication, reference);Qualifier Max : uint32 = null, Scope(reference);Qualifier MaxLen : uint32 = null, Scope(property, method,     parameter);Qualifier MaxValue : sint64 = null, Scope(property, method,    parameter);Qualifier Min : uint32 = 0, Scope(reference);Qualifier MinValue : sint64 = null, Scope(property, method,    parameter);Qualifier ModelCorrespondence : string[], Scope(property);Qualifier Nonlocal : string = null, Scope(reference);Qualifier NonlocalType : string = null, Scope(reference);Qualifier NullValue : string = null, Scope (property),      Flavor(DisableOverride);Qualifier Octetstring : boolean = false, Scope(property, parameter);Qualifier Out : boolean = false, Scope(parameter),    Flavor(DisableOverride);Qualifier Override : string = null, Scope(property, method,     reference), Flavor(DisableOverride);Qualifier Propagated : string = null, Scope(property),    Flavor(DisableOverride);Qualifier PropertyUsage : string = "CurrentContext", Scope(property) ; Qualifier Provider : string = null, Scope(any);Qualifier Read : boolean = true, Scope(property);Qualifier Required : boolean = false, Scope(property);Qualifier Revision : string = ".5", Scope(class,     association, indication ), Flavor(Translatable);Qualifier Schema : string = null, Scope (property, method),     Flavor(DisableOverride, Translatable);Qualifier Source : string = null, Scope(class, association,     indication);Qualifier SourceType : string = null, Scope(class, association,       indication, reference);Qualifier Static : boolean = false, Scope(method, property),    Flavor(DisableOverride);Qualifier Syntax : string = null, Scope(property, reference,    method, parameter);Qualifier SyntaxType : string = null, Scope(property, reference,    method, parameter);Qualifier Terminal : boolean = FALSE, Scope(class);Qualifier TriggerType : string = null,    Scope(class, property, reference, method, association,     indication);Qualifier Units : string = null, Scope(property, method,      parameter), Flavor(Translatable);Qualifier UnknownValues : string[], Scope(property),    Flavor(DisableOverride);Qualifier UnsupportedValues : string[], Scope(property),    Flavor(DisableOverride);Qualifier ValueMap : string[], Scope(property, method, parameter);Qualifier Values : string[], Scope(property, method, parameter),     Flavor(Translatable);Qualifier Version : string = "V2.5", Scope(class,     association, indication), Flavor(Translatable);Qualifier Weak : boolean = false, Scope(reference),       Flavor(DisableOverride, ToSubclass);Qualifier Write : boolean = false, Scope(property);// ==================================================================////  Elements and Collections//// ==================================================================// ==================================================================// ManagedElement// ==================================================================    [Abstract, Description (     "ManagedElement is an abstract class that provides a common "       "superclass (or top of the inheritance tree) for the "     "non-association classes in the CIM Schema.")]class WET_ManagedElement {        [MaxLen (64), Description (          "The Caption property is a short textual description (one-"            "line string) of the object.") ]      string Caption;        [Description (          "The Description property provides a textual description of "        "the object.") ]      string Description;    };     // ================================================================== //    ManagedSystemElement// ==================================================================   [Abstract, Description (     "WET_ManagedSystemElement is the base class for the System "     "Element hierarchy. Membership Criteria: Any distinguishable "     "component of a System is a candidate for inclusion in this "     "class. Examples: software components, such as files; and "     "devices, such as disk drives and controllers, and physical "     "components such as chips and cards.") ] class WET_ManagedSystemElement : WET_ManagedElement {      [Description (        "A datetime value indicating when the object was installed. "        "A lack of a value does not indicate that the object is not "        "installed."),        MappingStrings {"MIF.DMTF|ComponentID|001.5"} ]    datetime InstallDate;      [MaxLen (256), Description (        "The Name property defines the label by which the object is "        "known. When subclassed, the Name property can be overridden "        "to be a Key property.") ]    string Name;      [MaxLen (10), Description (         "  A string indicating the current status of the object. "         "Various operational and non-operational statuses are "         "defined. Operational statuses are \"OK\", \"Degraded\", "         "\"Stressed\" and \"Pred Fail\". \"Stressed\" indicates that "         "the Element is functioning, but needs attention. Examples "         "of \"Stressed\" states are overload, overheated, etc. The "         "condition \"Pred Fail\" (failure predicted) indicates that "         "an Element is functioning properly but predicting a failure "         "in the near future. An example is a SMART-enabled hard "         "drive. \n"         "  Non-operational statuses can also be specified. These "         "are \"Error\", \"NonRecover\", \"Starting\", \"Stopping\", "         " \"Stopped\", "         "\"Service\", \"No Contact\" and \"Lost Comm\". \"NonRecover\" "         "indicates that a non-recoverable error has occurred. "         "\"Service\" describes an Element being configured, maintained, "         "cleaned, or otherwise administered. This status could apply "         "during mirror-resilvering of a disk, reload of a user "         "permissions list, or other administrative task. Not all such "         "work is on-line, yet the Element is neither \"OK\" nor in "         "one of the other states. \"No Contact\" indicates that the "         "current instance of the monitoring system has knowledge of "         "this Element but has never been able to establish "         "communications with it. \"Lost Comm\" indicates that "         "the ManagedSystemElement is known to exist and has been "         "contacted successfully in the past, but is currently unreachable."         "\"Stopped\" indicates that the ManagedSystemElement is known "         "to exist, it is not operational (i.e. it is unable to "         "provide service to users), but it has not failed. It has purposely "         "been made non-operational. The Element "         "may have never been \"OK\", the Element may have initiated its "         "own stop, or a management system may have initiated the stop."),        ValueMap {"OK", "Error", "Degraded", "Unknown", "Pred Fail",                  "Starting", "Stopping", "Service", "Stressed",                  "NonRecover", "No Contact", "Lost Comm", "Stopped"} ]    string Status; };// ==================================================================// Collection // ==================================================================    [Abstract, Description (        "Collection is an abstract class that provides a common"        "superclass for data elements that represent collections of "     "ManagedElements and its subclasses.")]class WET_Collection : WET_ManagedElement {   };// ===================================================================//    CollectionOfMSEs// ===================================================================   [Abstract, Description (     "The CollectionOfMSEs object allows the grouping of Managed"     "SystemElements for various identification purposesand to "     "reduce the complexity of associating Settings and"     "Configurations. It is abstract to require furtherdefinition "     "and semantic refinement in subclasses. TheCollectionOfMSEs "     "object does not carry any state or statusinformation, but "     "only represents a grouping or 'bag' of Elements. Forthis "     "reason, it is incorrect to subclass groups that havestate/"     "status from CollectionOfMSEs - an example isWET_Redundancy"     "Group (which is correctly subclassed fromLogicalElement).\n"     "Collections typically aggregate 'like'objects, but are "      "not required to do so.  They simply identify 'bags' and "     "may represent an optimization. This is especiallytrue "     "with respect to their association to Settings and"     "Configurations. Without Collections, one is forcedto "     "define individual ElementSetting andElementConfiguration "     "associations, to tie Settings and Configurationobjects to "     "individual ManagedSystemElements. There may be much"     "duplication in assigning the same Setting tomultiple objects. "     "In addition, using the Collection object allows the"     "determination that the Setting and Configurationassociations "     "are indeed the same for the Collection's members.This "     "information would otherwise be obtained by definingthe "     "Collection in a proprietary manner, and thenquerying "     "the ElementSetting and ElementConfigurationassociations to "     "determine ifthe Collection set is completely covered.") ]class WET_CollectionOfMSEs : WET_Collection {      [MaxLen (256), Description (        "The identification of the Collection object. When subclassed, "        "the CollectionID property can be overridden to be a Key "        "property.") ]   string CollectionID;};// ==================================================================//    CollectedCollections// ==================================================================   [Association, Aggregation, Description (     "WET_CollectedCollections is an aggregation association "     "representing that a CollectionOfMSEs may itself be contained "     "in a CollectionOfMSEs.") ]class WET_CollectedCollections {      [Aggregate, Key, Description (        "The 'higher level' or parent element in the aggregation.") ]   WET_CollectionOfMSEs REF Collection;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -