Endian banner

endian.commands package

Submodules

endian.commands.status module

class JobsEngineCommandsDict(job=None)

Bases: UserDict.DictMixin

Dictionary of the jobsengine commands

This dictionary keep the list of the josengine commands. It fetches the list from the jobsengine using the “actions” cmd. The fected list is shared between all the instances of this class and is cached for ‘timeout’ seconds.

classmethod check_if_job_exist(job)
classmethod get_jobsengine_action(job, name)
classmethod get_jobsengine_actions()
keys()
Returns the list of the commands
Returns:The string of the returned by the engine. :rtype: a list of strings
timeout = 300
get_job_command_function(jobname=None, command=None, options=None)

Returns a wrapped function which calls the job_command.

Parameters:
  • jobname (String) – Job name
  • command (String) – Job command (e.g. ‘start’)
  • options (dict) – dict with the options. key = optionname, value= dict with two keys: type and description
Returns:

A wrapped command call to the jobsengine.

Return type:

function

init(root=None)

Registers the function of the jobsengine at the emi commands module.

jobsengine_actions()

Get the actions list

jobsengine_dump()

Dump the fact base

jobsengine_events()

Get the events queue

jobsengine_functions()

Get the functions list

jobsengine_handlers()

Get the list of the events handlers

jobsengine_list(arg=None)

Get jobs short status information

Parameters:arg (string) – an optiona value in ok,err,start,stop,exe,group
jobsengine_messages()

Get the last messages

jobsengine_query(fact)

Query the fact base

Parameters:fact (string) – a fact to be searched
jobsengine_threads()

Get the jobsengine threads list

Table Of Contents

Previous topic

endian.authentication.utils package

Next topic

endian.commands.web package