1
|
from haizea.common.utils import rst2latex
|
2
|
from haizea.pluggable.accounting import probe_class_mappings
|
3
|
from haizea.pluggable.accounting.leases import ARProbe, BEProbe, IMProbe
|
4
|
from haizea.pluggable.accounting.utilization import CPUUtilizationProbe, DiskUsageProbe
|
5
|
|
6
|
probes = [ARProbe, BEProbe, IMProbe, CPUUtilizationProbe, DiskUsageProbe]
|
7
|
|
8
|
inv_mappings = dict([(v,k) for k,v in probe_class_mappings.items()])
|
9
|
|
10
|
for probe in probes:
|
11
|
fullname = probe.__module__ + "." + probe.__name__
|
12
|
print "\\section{\\texttt{%s}}" % probe.__name__
|
13
|
print "\\noindent\\textbf{Full name:} \\texttt{%s}" % fullname
|
14
|
if inv_mappings.has_key(fullname):
|
15
|
print "\\\\ \\textbf{Short name:} \\texttt{%s}" % inv_mappings[fullname]
|
16
|
print "\\\\ \\textbf{Description:} \\\\"
|
17
|
print rst2latex(probe.__doc__)
|