/// <summary>
/// Unit generated using the Delphi Wmi class generator tool, Copyright Rodrigo Ruz V. 2010-2012
/// Application version 1.0.4674.62299
/// WMI version 7601.17514
/// Creation Date 17-10-2012 18:19:24
/// Namespace root\CIMV2 Class Win32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle
/// MSDN info about this class http://msdn2.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/Win32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle.asp
/// </summary>


unit uWin32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle;

interface

uses
 Classes,
 Activex,
 Variants,
 ComObj,
 uWmiDelphiClass;

type
  {$REGION 'Documentation'}
  /// <summary>
  /// Counters for System.Data.OracleClient
  /// </summary>
  {$ENDREGION}
  TWin32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle=class(TWmiClass)
  private
    FCaption                            : String;
    FDescription                        : String;
    FFrequency_Object                   : Int64;
    FFrequency_PerfTime                 : Int64;
    FFrequency_Sys100NS                 : Int64;
    FHardConnectsPerSecond              : Cardinal;
    FHardDisconnectsPerSecond           : Cardinal;
    FName                               : String;
    FNumberOfActiveConnectionPoolGroups : Cardinal;
    FNumberOfActiveConnectionPools      : Cardinal;
    FNumberOfActiveConnections          : Cardinal;
    FNumberOfFreeConnections            : Cardinal;
    FNumberOfInactiveConnectionPoolGroups : Cardinal;
    FNumberOfInactiveConnectionPools    : Cardinal;
    FNumberOfNonPooledConnections       : Cardinal;
    FNumberOfPooledConnections          : Cardinal;
    FNumberOfReclaimedConnections       : Cardinal;
    FNumberOfStasisConnections          : Cardinal;
    FSoftConnectsPerSecond              : Cardinal;
    FSoftDisconnectsPerSecond           : Cardinal;
    FTimestamp_Object                   : Int64;
    FTimestamp_PerfTime                 : Int64;
    FTimestamp_Sys100NS                 : Int64;
  public
   constructor Create(LoadWmiData : boolean=True); overload;
   destructor Destroy;Override;
   {$REGION 'Documentation'}
   /// <summary>
   /// A short textual description (one-line string) for the statistic or metric.
   /// </summary>
   {$ENDREGION}
   property Caption : String read FCaption;
   {$REGION 'Documentation'}
   /// <summary>
   /// A textual description of the statistic or metric.
   /// </summary>
   {$ENDREGION}
   property Description : String read FDescription;
   property Frequency_Object : Int64 read FFrequency_Object;
   property Frequency_PerfTime : Int64 read FFrequency_PerfTime;
   property Frequency_Sys100NS : Int64 read FFrequency_Sys100NS;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of actual connections per second that are being made to servers
   /// </summary>
   {$ENDREGION}
   property HardConnectsPerSecond : Cardinal read FHardConnectsPerSecond;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of actual disconnects per second that are being made to servers
   /// </summary>
   {$ENDREGION}
   property HardDisconnectsPerSecond : Cardinal read FHardDisconnectsPerSecond;
   {$REGION 'Documentation'}
   /// <summary>
   /// The Name property defines the label by which the statistic or metric is known. 
   /// When subclassed, the property can be overridden to be a Key property. 
   /// </summary>
   {$ENDREGION}
   property Name : String read FName;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of unique connection strings
   /// </summary>
   {$ENDREGION}
   property NumberOfActiveConnectionPoolGroups : Cardinal read FNumberOfActiveConnectionPoolGroups;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of active connection pools
   /// </summary>
   {$ENDREGION}
   property NumberOfActiveConnectionPools : Cardinal read FNumberOfActiveConnectionPools;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of connections currently in-use
   /// </summary>
   {$ENDREGION}
   property NumberOfActiveConnections : Cardinal read FNumberOfActiveConnections;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of connections currently available for use
   /// </summary>
   {$ENDREGION}
   property NumberOfFreeConnections : Cardinal read FNumberOfFreeConnections;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of unique connection strings waiting for pruning
   /// </summary>
   {$ENDREGION}
   property NumberOfInactiveConnectionPoolGroups : Cardinal read FNumberOfInactiveConnectionPoolGroups;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of inactive connection pools
   /// </summary>
   {$ENDREGION}
   property NumberOfInactiveConnectionPools : Cardinal read FNumberOfInactiveConnectionPools;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of connections that are not using connection pooling
   /// </summary>
   {$ENDREGION}
   property NumberOfNonPooledConnections : Cardinal read FNumberOfNonPooledConnections;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of connections that are managed by the connection pooler
   /// </summary>
   {$ENDREGION}
   property NumberOfPooledConnections : Cardinal read FNumberOfPooledConnections;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of connections we reclaim from GCed external connections
   /// </summary>
   {$ENDREGION}
   property NumberOfReclaimedConnections : Cardinal read FNumberOfReclaimedConnections;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of connections currently waiting to be made ready for use
   /// </summary>
   {$ENDREGION}
   property NumberOfStasisConnections : Cardinal read FNumberOfStasisConnections;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of connections we get from the pool per second
   /// </summary>
   {$ENDREGION}
   property SoftConnectsPerSecond : Cardinal read FSoftConnectsPerSecond;
   {$REGION 'Documentation'}
   /// <summary>
   /// The number of connections we return to the pool per second
   /// </summary>
   {$ENDREGION}
   property SoftDisconnectsPerSecond : Cardinal read FSoftDisconnectsPerSecond;
   property Timestamp_Object : Int64 read FTimestamp_Object;
   property Timestamp_PerfTime : Int64 read FTimestamp_PerfTime;
   property Timestamp_Sys100NS : Int64 read FTimestamp_Sys100NS;
   procedure SetCollectionIndex(Index : Integer); override;
  end;



implementation


{TWin32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle}

constructor TWin32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle.Create(LoadWmiData : boolean=True);
begin
  inherited Create(LoadWmiData,'root\CIMV2','Win32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle');
end;

destructor TWin32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle.Destroy;
begin
  inherited;
end;

procedure TWin32_PerfRawData_NETDataProviderforOracle_NETDataProviderforOracle.SetCollectionIndex(Index : Integer);
begin
  if (Index>=0) and (Index<=FWmiCollection.Count-1) and (FWmiCollectionIndex<>Index) then
  begin
    FWmiCollectionIndex:=Index;
    FCaption                                   := VarStrNull(inherited Value['Caption']);
    FDescription                               := VarStrNull(inherited Value['Description']);
    FFrequency_Object                          := VarInt64Null(inherited Value['Frequency_Object']);
    FFrequency_PerfTime                        := VarInt64Null(inherited Value['Frequency_PerfTime']);
    FFrequency_Sys100NS                        := VarInt64Null(inherited Value['Frequency_Sys100NS']);
    FHardConnectsPerSecond                     := VarCardinalNull(inherited Value['HardConnectsPerSecond']);
    FHardDisconnectsPerSecond                  := VarCardinalNull(inherited Value['HardDisconnectsPerSecond']);
    FName                                      := VarStrNull(inherited Value['Name']);
    FNumberOfActiveConnectionPoolGroups        := VarCardinalNull(inherited Value['NumberOfActiveConnectionPoolGroups']);
    FNumberOfActiveConnectionPools             := VarCardinalNull(inherited Value['NumberOfActiveConnectionPools']);
    FNumberOfActiveConnections                 := VarCardinalNull(inherited Value['NumberOfActiveConnections']);
    FNumberOfFreeConnections                   := VarCardinalNull(inherited Value['NumberOfFreeConnections']);
    FNumberOfInactiveConnectionPoolGroups      := VarCardinalNull(inherited Value['NumberOfInactiveConnectionPoolGroups']);
    FNumberOfInactiveConnectionPools           := VarCardinalNull(inherited Value['NumberOfInactiveConnectionPools']);
    FNumberOfNonPooledConnections              := VarCardinalNull(inherited Value['NumberOfNonPooledConnections']);
    FNumberOfPooledConnections                 := VarCardinalNull(inherited Value['NumberOfPooledConnections']);
    FNumberOfReclaimedConnections              := VarCardinalNull(inherited Value['NumberOfReclaimedConnections']);
    FNumberOfStasisConnections                 := VarCardinalNull(inherited Value['NumberOfStasisConnections']);
    FSoftConnectsPerSecond                     := VarCardinalNull(inherited Value['SoftConnectsPerSecond']);
    FSoftDisconnectsPerSecond                  := VarCardinalNull(inherited Value['SoftDisconnectsPerSecond']);
    FTimestamp_Object                          := VarInt64Null(inherited Value['Timestamp_Object']);
    FTimestamp_PerfTime                        := VarInt64Null(inherited Value['Timestamp_PerfTime']);
    FTimestamp_Sys100NS                        := VarInt64Null(inherited Value['Timestamp_Sys100NS']);
  end;
end;

end.
