Class: WMI::CIM_Service

Inherits:
Base
  • Object
show all
Defined in:
lib/CIM_Service.rb

Overview

CIM_Service は、デバイスおよび (または) ソフトウェアの機能によって提供されている機能を表示して管理するのに必要な情報が含まれている論理要素です。サービスは一般目的のオブジェクトで機能の実装を構成して管理します。機能自体ではありません。

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Base

#AddRef, #AssociatorsAsync_, #Associators_, #Clone_, #CompareTo_, #DeleteAsync_, #Delete_, #Derivation_, #ExecMethodAsync_, #ExecMethod_, #GetIDsOfNames, #GetObjectText_, #GetText_, #GetTypeInfo, #GetTypeInfoCount, #InstancesAsync_, #Instances_, #Invoke, #Methods_, #Path_, #Properties_, #PutAsync_, #Put_, #Qualifiers_, #QueryInterface, #ReferencesAsync_, #References_, #Refresh_, #Release, #Security_, #SetFromText_, #SpawnDerivedClass_, #SpawnInstance_, #SubclassesAsync_, #Subclasses_, #SystemProperties_

Instance Attribute Details

- (string) Caption (readonly)

Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。

Returns:

  • (string)

    Caption



26
27
28
# File 'lib/CIM_Service.rb', line 26

def Caption
  @Caption
end

- (string) CreationClassName (readonly)

CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。

 

Returns:

  • (string)

    CreationClassName



32
33
34
# File 'lib/CIM_Service.rb', line 32

def CreationClassName
  @CreationClassName
end

- (string) Description (readonly)

Description プロパティでオブジェクトの説明が提供されます。

Returns:

  • (string)

    Description



38
39
40
# File 'lib/CIM_Service.rb', line 38

def Description
  @Description
end

- (datetime) InstallDate (readonly)

InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。

 

Returns:

  • (datetime)

    InstallDate



44
45
46
# File 'lib/CIM_Service.rb', line 44

def InstallDate
  @InstallDate
end

- (string) Name (readonly)

Name プロパティによって、サービスが固有に識別され、管理されている機能の表示が提供されます。

 

Returns:

  • (string)

    Name



51
52
53
# File 'lib/CIM_Service.rb', line 51

def Name
  @Name
end

- (boolean) Started (readonly)

Started はサービスが開始したか (TRUE)、または停止したか (FALSE) を示すブール値です。

Returns:

  • (boolean)

    Started



56
57
58
# File 'lib/CIM_Service.rb', line 56

def Started
  @Started
end

- (string) StartMode (readonly)

StartMode は、サービスがオペレーティング システムによって自動的に開始するかどうか、または要求に応じて開始するだけなのかどうかを示す文字列の値です

Returns:

  • (string)

    StartMode



61
62
63
# File 'lib/CIM_Service.rb', line 61

def StartMode
  @StartMode
end

- (string) Status (readonly)

Status プロパティはオブジェクトの現在の状態を示す文字列です。

 

Returns:

  • (string)

    Status



74
75
76
# File 'lib/CIM_Service.rb', line 74

def Status
  @Status
end

- (string) SystemCreationClassName (readonly)

スコーピング システムの CreationClassName です。

Returns:

  • (string)

    SystemCreationClassName



80
81
82
# File 'lib/CIM_Service.rb', line 80

def SystemCreationClassName
  @SystemCreationClassName
end

- (string) SystemName (readonly)

このサービスのホストになるシステム名です

Returns:

  • (string)

    SystemName



85
86
87
# File 'lib/CIM_Service.rb', line 85

def SystemName
  @SystemName
end

Instance Method Details

- (uint32) StartService

StartService 方法によって、開始された状態のサービスが置かれます。 サービスが正常に開始すると、整数 0 が返され、要求がサポートされない場合は 1 が返されます。 エラーを示す場合は、別の数字が返されます。 サブクラスでは、可能な返信コードのセットはメソッド上の ValueMap 修飾子を使って指定することも可能です。

 ValueMap 

値の配置修飾子としてサブクラスで指定される場合もあります。

Returns:

  • (uint32)


12
13
# File 'lib/CIM_Service.rb', line 12

def StartService 
end

- (uint32) StopService

StopService 方法によって、停止された状態のサービスが置かれます。 サービスが正常に停止すると、整数 0 が返され、要求がサポートされていない場合は 1 が返されます。 エラーを示す場合は、別の数字が返されます。

Returns:

  • (uint32)


20
21
# File 'lib/CIM_Service.rb', line 20

def StopService 
end