LMI_Service

Class reference

Subclass of CIM_Service

Class representing Linux Service

Local properties

None

Local methods

uint32 ReloadOrRestartService ()

Parameters
None

uint32 ReloadService ()

Parameters
None

uint32 StopService ()

The StopService method places the Service in the stopped state. Note that the function of this method overlaps with the RequestedState property. RequestedState was added to the model to maintain a record (such as a persisted value) of the last state request. Invoking the StopService method should set the RequestedState property appropriately. The method returns an integer value of 0 if the Service was successfully stopped, 1 if the request is not supported, and any other number to indicate an error. In a subclass, the set of possible return codes could be specified using a ValueMap qualifier on the method. The strings to which the ValueMap contents are translated can also be specified in the subclass as a Values array qualifier.

Note: The semantics of this method overlap with the RequestStateChange method that is inherited from EnabledLogicalElement. This method is maintained because it has been widely implemented, and its simple “stop” semantics are convenient to use.

Parameters

None

uint32 TurnServiceOn ()

Parameters
None

uint32 TurnServiceOff ()

Parameters
None

uint32 TryRestartService ()

Parameters
None

uint32 ReloadOrTryRestartService ()

Parameters
None

uint32 StartService ()

The StartService method places the Service in the started state. Note that the function of this method overlaps with the RequestedState property. RequestedState was added to the model to maintain a record (such as a persisted value) of the last state request. Invoking the StartService method should set the RequestedState property appropriately. The method returns an integer value of 0 if the Service was successfully started, 1 if the request is not supported, and any other number to indicate an error. In a subclass, the set of possible return codes could be specified using a ValueMap qualifier on the method. The strings to which the ValueMap contents are translated can also be specified in the subclass as a Values array qualifier.

Note: The semantics of this method overlap with the RequestStateChange method that is inherited from EnabledLogicalElement. This method is maintained because it has been widely implemented, and its simple “start” semantics are convenient to use.

Parameters

None

uint32 CondRestartService ()

Parameters
None

uint32 RestartService ()

Parameters

None

Table Of Contents

Previous topic

CIM_Service

This Page