//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_Watchdog.cs
//
// Contents: CIM_Watchdog is a timer that is implemented in the system hardware. It allows the hardware to monitor the state of the Operating System, BIOS, or a software component that is installed on the System. If the monitored component fails to re-arm the timer before its expiration, the hardware assumes that the System is in a critical state, and could reset the ComputerSystem. This feature can also be used as an application watchdog timer for a mission-critical application. In this case, the application would assume responsibility for re-arming the timer before expiration.
// This file was automatically generated from CIM_Watchdog.mof
//
//----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Globalization;
using System.Xml.Serialization;
using System.IO;
using Intel.Manageability.WSManagement;
using Intel.Manageability.Cim.Untyped;
namespace Intel.Manageability.Cim.Typed
{
///
///CIM_Watchdog is a timer that is implemented in the system hardware. It allows the hardware to monitor the state of the Operating System, BIOS, or a software component that is installed on the System. If the monitored component fails to re-arm the timer before its expiration, the hardware assumes that the System is in a critical state, and could reset the ComputerSystem. This feature can also be used as an application watchdog timer for a mission-critical application. In this case, the application would assume responsibility for re-arming the timer before expiration.
///
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Watchdog")]
[System.Xml.Serialization.XmlRootAttribute("CIM_Watchdog", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Watchdog", IsNullable=false)]
public class CIM_Watchdog : CIM_LogicalDevice
{
///
/// Default constructor.
///
public CIM_Watchdog() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public CIM_Watchdog(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public CIM_Watchdog(IWSManClient client): base(client)
{
}
///
/// Remove ActionOnExpiration field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveActionOnExpiration()
{
RemoveField("ActionOnExpiration");
}
///
/// Is true if the field ActionOnExpiration exists in the current object,
/// otherwise is false.
///
public virtual bool ActionOnExpirationExist
{
get
{
return ContainsField("ActionOnExpiration");
}
}
///
/// Optional, The action that should happen upon the expiry of the watchdog.
///
[CimField(false, false)]
public virtual ushort ActionOnExpiration
{
get
{
return ushort.Parse(this["ActionOnExpiration"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("ActionOnExpiration",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove MonitoredEntity field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveMonitoredEntity()
{
RemoveField("MonitoredEntity");
}
///
/// Is true if the field MonitoredEntity exists in the current object,
/// otherwise is false.
///
public virtual bool MonitoredEntityExist
{
get
{
return ContainsField("MonitoredEntity");
}
}
///
/// Optional, The entity that is currently being monitored by the WatchDog. This property is used to identify the module that is responsible for re-arming, or whose information is used to re-arm, the watchdog at periodic intervals.
///
[CimField(false, false)]
public virtual ushort MonitoredEntity
{
get
{
return ushort.Parse(this["MonitoredEntity"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("MonitoredEntity",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove MonitoredEntityDescription field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveMonitoredEntityDescription()
{
RemoveField("MonitoredEntityDescription");
}
///
/// Is true if the field MonitoredEntityDescription exists in the current object,
/// otherwise is false.
///
public virtual bool MonitoredEntityDescriptionExist
{
get
{
return ContainsField("MonitoredEntityDescription");
}
}
///
/// Optional, A string that describes more textual information about the monitored entity.
///
[CimField(false, false)]
public virtual string MonitoredEntityDescription
{
get
{
return this.GetField("MonitoredEntityDescription")[0];
}
set
{
this.SetOrAddField("MonitoredEntityDescription",value);
}
}
///
/// Remove MonitoredEntityOnLastExpiration field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveMonitoredEntityOnLastExpiration()
{
RemoveField("MonitoredEntityOnLastExpiration");
}
///
/// Is true if the field MonitoredEntityOnLastExpiration exists in the current object,
/// otherwise is false.
///
public virtual bool MonitoredEntityOnLastExpirationExist
{
get
{
return ContainsField("MonitoredEntityOnLastExpiration");
}
}
///
/// Optional, Monitored entity at the time of last timer expiry.
///
[CimField(false, false)]
public virtual ushort MonitoredEntityOnLastExpiration
{
get
{
return ushort.Parse(this["MonitoredEntityOnLastExpiration"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("MonitoredEntityOnLastExpiration",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove TimeOfLastExpiration field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveTimeOfLastExpiration()
{
RemoveField("TimeOfLastExpiration");
}
///
/// Is true if the field TimeOfLastExpiration exists in the current object,
/// otherwise is false.
///
public virtual bool TimeOfLastExpirationExist
{
get
{
return ContainsField("TimeOfLastExpiration");
}
}
///
/// Optional, The time of the last timer expiry.
///
[CimField(false, false)]
public virtual CimDateTime TimeOfLastExpiration
{
get
{
return CimDateTime.Parse(this["TimeOfLastExpiration"][0]);
}
set
{
this.SetOrAddField("TimeOfLastExpiration",value.ToString());
}
}
///
/// Remove TimeoutInterval field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveTimeoutInterval()
{
RemoveField("TimeoutInterval");
}
///
/// Is true if the field TimeoutInterval exists in the current object,
/// otherwise is false.
///
public virtual bool TimeoutIntervalExist
{
get
{
return ContainsField("TimeoutInterval");
}
}
///
/// Optional, The timeout interval that is used by the watchdog, in MicroSeconds.
///
[CimField(false, false)]
public virtual uint TimeoutInterval
{
get
{
return uint.Parse(this["TimeoutInterval"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("TimeoutInterval",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove TimerResolution field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveTimerResolution()
{
RemoveField("TimerResolution");
}
///
/// Is true if the field TimerResolution exists in the current object,
/// otherwise is false.
///
public virtual bool TimerResolutionExist
{
get
{
return ContainsField("TimerResolution");
}
}
///
/// Optional, Resolution of the timer. For example, if this value is 100, then the timer can expire anytime between (TimeoutInterval- 100) microseconds or (TimeoutInterval+100) microseconds.
///
[CimField(false, false)]
public virtual uint TimerResolution
{
get
{
return uint.Parse(this["TimerResolution"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("TimerResolution",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Enumerate instances of CIM_Watchdog class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of CIM_Watchdog objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of CIM_Watchdog class at an endpoint.
///
/// WS-Management client
/// Collection of CIM_Watchdog objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of CIM_Watchdog if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
///
/// WS-Management client
public static new void Delete(IWSManClient client)
{
CimBase.Delete(client);
}
///
/// Represents the keys of the CIM_Watchdog class.
///
public new class CimKeys : CIM_LogicalDevice.CimKeys
{
}
}
}