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) |
def | SortAndGrid (table, order) |
Variables | |
appinfo | |
apptable | |
args | |
options | |
xmldoc | |
Some module's global variables. More... | |
XMLfile | |
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 67 of file ExtractAppInfoFromXML.py.
References compactNodeValue().
Referenced by getAppInfo().
def ExtractAppInfoFromXML.compactNodeValue | ( | head | ) |
def ExtractAppInfoFromXML.fillTable | ( | order, | |
branch = [] |
|||
) |
Definition at line 142 of file ExtractAppInfoFromXML.py.
References filterNodeList(), getAppNameFromCfg(), getProcNameFromCfg(), and min().
Referenced by getAppInfo().
def ExtractAppInfoFromXML.filterNodeList | ( | branch1, | |
nodeList | |||
) |
Definition at line 126 of file ExtractAppInfoFromXML.py.
References FastTimerService_cff.range.
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 233 of file ExtractAppInfoFromXML.py.
References appendDataXML(), fillTable(), 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 76 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 101 of file ExtractAppInfoFromXML.py.
Referenced by fillTable().
def ExtractAppInfoFromXML.printGrid | ( | grid | ) |
Definition at line 214 of file ExtractAppInfoFromXML.py.
References edm.print(), and FastTimerService_cff.range.
def ExtractAppInfoFromXML.printXMLtree | ( | head, | |
l = 0 , |
|||
bn = 0 |
|||
) |
Definition at line 31 of file ExtractAppInfoFromXML.py.
References edm.print(), FastTimerService_cff.range, and str.
def ExtractAppInfoFromXML.SortAndGrid | ( | table, | |
order | |||
) |
table => {s:{p:{c:{a:{}}}}}
Definition at line 193 of file ExtractAppInfoFromXML.py.
Referenced by getAppInfo().
ExtractAppInfoFromXML.appinfo |
Definition at line 306 of file ExtractAppInfoFromXML.py.
ExtractAppInfoFromXML.apptable |
Definition at line 306 of file ExtractAppInfoFromXML.py.
ExtractAppInfoFromXML.args |
Definition at line 293 of file ExtractAppInfoFromXML.py.
ExtractAppInfoFromXML.options |
Definition at line 295 of file ExtractAppInfoFromXML.py.
ExtractAppInfoFromXML.xmldoc |
Some module's global variables.
Definition at line 29 of file ExtractAppInfoFromXML.py.
Referenced by emtf::Tree.loadFromXML(), and emtf::Tree.saveToXML().
ExtractAppInfoFromXML.XMLfile |
Definition at line 292 of file ExtractAppInfoFromXML.py.