MSCluster_ResourceType class
A dynamic WMI class that represents a resource type.
The following syntax is simplified from MOF code and includes all inherited properties.
Syntax
[Dynamic, Provider("MS_CLUSTER_PROVIDER"), UUID("{2F2EF49D-37DD-47c2-8328-6586142B8C99}"), AMENDMENT]
class MSCluster_ResourceType : MSCluster_LogicalElement
{
string Caption;
datetime InstallDate;
string Status;
uint32 Flags;
uint32 Characteristics;
string Name;
string DisplayName;
string Description;
string AdminExtensions[];
string DllName;
uint32 IsAlivePollInterval;
uint32 LooksAlivePollInterval;
boolean QuorumCapable;
boolean LocalQuorumCapable;
boolean DeleteRequiresAllNodes;
uint32 DeadlockTimeout;
uint32 PendingTimeout;
uint64 DumpPolicy;
string DumpLogQuery[];
string EnabledEventLogs[];
MSCluster_Property PrivateProperties;
string RequiredDependencyTypes[];
uint32 ResourceClass;
uint32 RequiredDependencyClasses[];
uint32 MaximumMonitors;
string DumpServices[];
};
Members
The MSCluster_ResourceType class has these types of members:
Methods
The MSCluster_ResourceType class has these methods.
Method | Description |
---|---|
CreateResourceType | Creates a resource type. |
DeleteResourceType | Deletes a resource type. |
ExecuteResourceTypeControl | Executes a control code on the resource type. |
GetPossibleOwners | Gets the possible owners of this resource type. Windows Server 2008 R2 and Windows Server 2008: This method is not supported before Windows Server 2012. |
Properties
The MSCluster_ResourceType class has these properties.
-
AdminExtensions
-
-
Data type: string array
-
Access type: Read/write
Provides the class identifiers (CLSIDs) for the Cluster Administrator extension DLLs that are associated with the resource type.
-
-
Caption
-
-
Data type: string
-
Access type: Read-only
-
Qualifiers: MaxLen (64)
A short textual description (one-line string) of the resource type.
This property is inherited from CIM_ManagedSystemElement.
-
-
Characteristics
-
-
Data type: uint32
-
Access type: Read-only
Provides the characteristics of the resource type. The cluster defines characteristics only for resources. For a description of these characteristics, see CLUSCTL_RESOURCE_GET_CHARACTERISTICS.
**Windows Server 2008 R2 and Windows Server 2008: **
This property is read/write before Windows Server 2012.
This property is inherited from MSCluster_LogicalElement.
-
-
DeadlockTimeout
-
-
Data type: uint32
-
Access type: Read/write
The length of time to wait, in milliseconds, before declaring a deadlock in any call into a resource.
-
-
DeleteRequiresAllNodes
-
-
Data type: boolean
-
Access type: Read-only
The resource cannot be deleted unless all nodes are active.
-
-
Description
-
-
Data type: string
-
Access type: Read/write
-
Qualifiers: Override (Description)
Provides access to the resource type's Description property.
-
-
DisplayName
-
-
Data type: string
-
Access type: Read/write
Provides access to the resource type's Name property, which is the name displayed for the resource type.
-
-
DllName
-
-
Data type: string
-
Access type: Read-only
Provides access to the resource type's DllName property, which is the name of the dynamic-link library (DLL) for the resource type.
-
-
DumpLogQuery
-
-
Data type: string array
-
Access type: Read/write
Queries that can be used to export resource type specific logs.
**Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2 and Windows Server 2008: **
This property is not supported before Windows Server 2016.
-
-
DumpPolicy
-
-
Data type: uint64
-
Access type: Read/write
Control cluster behavior when call into resource times out.
**Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2 and Windows Server 2008: **
This property is not supported before Windows Server 2016.
-
-
DumpServices
-
-
Data type: string array
-
Access type: Read/write
The process names and service names to dump if the resource or an instance of the resource type hangs or crashes.
**Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2 and Windows Server 2008: **
This property is not supported before Windows Server 2016.
-
-
EnabledEventLogs
-
-
Data type: string array
-
Access type: Read/write
Event logs that are enabled to diagnose problems with resources of the resource type.
**Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2 and Windows Server 2008: **
This property is not supported before Windows Server 2016.
-
-
Flags
-
-
Data type: uint32
-
Access type: Read-only
Provides access to the flags set for the resource type. The cluster defines flags only for resources. For a description of these flags, see CLUSCTL_RESOURCE_GET_FLAGS.
**Windows Server 2008 R2 and Windows Server 2008: **
This property is read/write before Windows Server 2012.
This property is inherited from MSCluster_LogicalElement.
-
-
InstallDate
-
-
Data type: datetime
-
Access type: Read-only
-
Qualifiers: MappingStrings ("MIF.DMTF|ComponentID|001.5")
Indicates when the resource type was installed. A lack of a value does not indicate that the resource type is not installed.
This property is inherited from CIM_ManagedSystemElement.
-
-
IsAlivePollInterval
-
-
Data type: uint32
-
Access type: Read/write
Provides access to the resource type's IsAlivePollInterval property, which is the recommended interval in milliseconds at which the Cluster Service should poll the resource to determine whether it is operational.
-
-
LocalQuorumCapable
-
-
Data type: boolean
-
Access type: Read-only
This property is obsolete.
-
-
LooksAlivePollInterval
-
-
Data type: uint32
-
Access type: Read/write
Provides access to the resource type's LooksAlivePollInterval property, which is the recommended interval in milliseconds at which the Cluster Service should poll the resource to determine whether it appears operational.
-
-
MaximumMonitors
-
-
Data type: uint32
-
Access type: Read/write
The maximum number of RHS instances that can be created due to resources of this type crashing.
**Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2 and Windows Server 2008: **
This property is not supported before Windows Server 2016.
-
-
Name
-
Provides the name of the resource type.
-
PendingTimeout
-
-
Data type: uint32
-
Access type: Read/write
If a resource cannot be brought online or taken offline in the number of milliseconds specified by this property, the resource is forcibly terminated.
-
-
PrivateProperties
-
-
Data type: MSCluster_Property
-
Access type: Read/write
Private properties of the resource type.
-
-
QuorumCapable
-
-
Data type: boolean
-
Access type: Read-only
The resource can be selected as the quorum resource for the cluster.
-
-
RequiredDependencyClasses
-
-
Data type: uint32 array
-
Access type: Read-only
The resource classes which a resource of this type must depend on.
**Windows Server 2008 R2 and Windows Server 2008: **
This property is not supported before Windows Server 2012.
The possible values are.
-
-
Unknown (0)
-
Storage (1)
-
Network (2)
-
User (32768)
RequiredDependencyTypes
-
Data type: string array
-
Access type: Read-only
The resource types which a resource of this type must depend on.
**Windows Server 2008 R2 and Windows Server 2008: **
This property is not supported before Windows Server 2012.
ResourceClass
-
Data type: uint32
-
Access type: Read-only
The class of this resource type.
**Windows Server 2008 R2 and Windows Server 2008: **
This property is not supported before Windows Server 2012.
The possible values are.
Unknown (0)
Storage (1)
Network (2)
User (32768)
Status
-
Data type: string
-
Access type: Read-only
-
Qualifiers: MaxLen (10)
A string indicating the current status of the resource type.
This property is inherited from CIM_ManagedSystemElement.
("OK")
("Error")
("Degraded")
("Unknown")
("Pred Fail")
("Starting")
("Stopping")
("Service")
("Stressed")
("NonRecover")
Remarks
The MSCluster_ResourceType class is derived from the MSCluster_LogicalElement class.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\MSCluster |
MOF |
|
DLL |
|