pcp
[Top] [All Lists]

[Bug 1270176] Python PMAPI pmSetOptionHostList no workie

To: pcp@xxxxxxxxxxx
Subject: [Bug 1270176] Python PMAPI pmSetOptionHostList no workie
From: bugzilla@xxxxxxxxxx
Date: Mon, 12 Oct 2015 01:20:59 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <bug-1270176-355098@xxxxxxxxxxxxxxxxxxx>
References: <bug-1270176-355098@xxxxxxxxxxxxxxxxxxx>
https://bugzilla.redhat.com/show_bug.cgi?id=1270176



--- Comment #1 from Nathan Scott <nathans@xxxxxxxxxx> ---
There's a bit of a conceptual disconnect here, I think Marko...

|        self.context = pmapi.pmContext.fromOptions(self.opts, sys.argv)

The pmContext fromOptions helper interface is intended for simpler tools (the
vast majority of PCP tools fall into this catgeory though), where there is only
one source of metrics - a live host, or a single archive.

We'll need a higher level python API (i.e. pcp.pmcc rather than pcp.pmapi) to
be able to construct multiple pmContext objects from a list of hosts.

So, the pmOptions class supports this notion of multiple sources (from the
command line and via the pmSetOptionHost/ArchiveList pmOption interfaces), but
there's nothing so far to turn that into a class that managed multiple contexts
- pcp.pmContext is not that class.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=yLcVuIerKe&a=cc_unsubscribe

<Prev in Thread] Current Thread [Next in Thread>