Package comodit_client :: Package api :: Module compliance :: Class ServiceState

Class ServiceState


State of a service.

Instance Methods
 
show(self, indent=0)
Prints a user-friendly representation of this state to standard output.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
bool running
Tells if the service is currently executed.
bool enabled
Tells if the service is currently enabled (i.e.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints a user-friendly representation of this state to standard output.

Parameters:
  • indent (int) - The number of spaces that will be put at the beginning of each printed line.

Property Details

running

Tells if the service is currently executed.

Get Method:
unreachable.running(self) - Tells if the service is currently executed.
Type:
bool

enabled

Tells if the service is currently enabled (i.e. will be executed on re-boot).

Get Method:
unreachable.enabled(self) - Tells if the service is currently enabled (i.e.
Type:
bool