Functions | |
def | appendDataXML (head) |
def | compactNodeValue (head) |
def | fillTable (order, branch=[]) |
def | filterNodeList (branch1, nodeList) |
def | getAppInfo (XMLf, s=0, a=2, p=1, c=3) |
getAppInfo # More... | |
def | getAppNameFromCfg (filename) |
def | getProcNameFromCfg (filename) |
def | printGrid (grid) |
def | printXMLtree (head, l=0, bn=0) |
Some module's global variables. More... | |
def | SortAndGrid (table, order) |
Syntax: ExtracAppInfoFromXML [-sapc] file Parameters: file file from where to read a RCMS configuration -s list application servers found in the XML file -p list the ports used found in the XML file -a list the names of the applications configured in the XML file -c list the cfg (eg dqmfu09-1_cfg.py) files Notes: The default behavior is to present a table organized in the following way SERVER PORT CFG_FILE APP_NAME which is equivalent to using -sapc The options selected and their order will affect teeh fields shown and their respective sorting. eg. -sa will only show SERVER and APP_NAME and will sort first by SERVER and then by APP_NAME OUTPUT is always unique in a per row bases
def ExtractAppInfoFromXML.appendDataXML | ( | head | ) |
Parses information that's XML format from value to the Docuemnt tree
Definition at line 65 of file ExtractAppInfoFromXML.py.
References compactNodeValue().
Referenced by getAppInfo().
def ExtractAppInfoFromXML.compactNodeValue | ( | head | ) |
Definition at line 51 of file ExtractAppInfoFromXML.py.
Referenced by appendDataXML().
def ExtractAppInfoFromXML.fillTable | ( | order, | |
branch = [] |
|||
) |
Definition at line 140 of file ExtractAppInfoFromXML.py.
References filterNodeList(), getAppNameFromCfg(), getProcNameFromCfg(), and min().
Referenced by getAppInfo().
def ExtractAppInfoFromXML.filterNodeList | ( | branch1, | |
nodeList | |||
) |
Definition at line 124 of file ExtractAppInfoFromXML.py.
Referenced by fillTable().
def ExtractAppInfoFromXML.getAppInfo | ( | XMLf, | |
s = 0 , |
|||
a = 2 , |
|||
p = 1 , |
|||
c = 3 |
|||
) |
getAppInfo #
getAppInfo(XMLf,s=0,a=2,p=1,c=3) takes the file name of a valid RCMS configuration and 4 variables that represent which fields are desired and in which order. It returns a touple containing a directory that contains all the relevant information in the XMLf file and a list of rows each row containing the fiels specified by the other four variables in the r espective order The fields are Servers (s) ports(p) Appnames a.k.a. consumer names(a) and consumer config file. (Note: The consumerName is directly extracted from the config file.) if one field is not desired it should be assigned a value of -1 eg s=-1. other wise their value is mapped from smallest to largest ==> left to right. Note the default values, they will take precedence if not specifyed giving unexpected results
Definition at line 231 of file ExtractAppInfoFromXML.py.
References appendDataXML(), fillTable(), printGrid(), and SortAndGrid().
def ExtractAppInfoFromXML.getAppNameFromCfg | ( | filename | ) |
it searches for the line containing the string consumerName, usually found as a property of the process, and returns the set value found. eg. matches line: process.EventStreamHttpReader.consumerName = 'EcalEndcap DQM Consumer' returns: EcalEndcap DQM Consumer
Definition at line 74 of file ExtractAppInfoFromXML.py.
Referenced by fillTable().
def ExtractAppInfoFromXML.getProcNameFromCfg | ( | filename | ) |
it searches for the line containing the string consumerName, usually found as a property of the process, and returns the set value found. eg. matches line: process = cms.Process ("ECALDQM") returns: ECALDQM
Definition at line 99 of file ExtractAppInfoFromXML.py.
Referenced by fillTable().
def ExtractAppInfoFromXML.printGrid | ( | grid | ) |
def ExtractAppInfoFromXML.printXMLtree | ( | head, | |
l = 0 , |
|||
bn = 0 |
|||
) |
Some module's global variables.
Definition at line 29 of file ExtractAppInfoFromXML.py.
References str.
def ExtractAppInfoFromXML.SortAndGrid | ( | table, | |
order | |||
) |
table => {s:{p:{c:{a:{}}}}}
Definition at line 191 of file ExtractAppInfoFromXML.py.
Referenced by getAppInfo().