Package pymeterlib :: Module Host :: Class Host
[show private | hide private]
[frames | no frames]

Class Host

Known Subclasses:
RemoteHost

Unix-like Host.
Method Summary
  __init__(self, *plugins)
List of strings check_stats(self)
Run plugin commands on the local host.
  disable_storage(self)
Disable internal storage of stats and flush any existing storage.
  enable_storage(self)
Enable internal storage of stats.
  flush_stats(self)
Flush (clear) any stats stored in the object.

Instance Variable Summary
  last_stat: Value of last single stat from the last check
  last_stats: List of stats (values) from the last check
  plugins: Instances of plugin objects to run for stat checks
  stat_labels: Labels (names) of the stats to be checked
  storage_enabled: Indication if internal storage of stats is enabled (boolean)
  stored_stats: List of stats collected since enabling storage or last flush

Method Details

__init__(self, *plugins)
(Constructor)

Parameters:
plugins - Instances of plugin objects to run for stat checks (arbitrary number of arguments)

check_stats(self)

Run plugin commands on the local host.
Returns:
Stats
           (type=List of strings)

disable_storage(self)

Disable internal storage of stats and flush any existing storage. (Disabled by default)

enable_storage(self)

Enable internal storage of stats. (Disabled by default)

flush_stats(self)

Flush (clear) any stats stored in the object.

Instance Variable Details

last_stat

Value of last single stat from the last check

last_stats

List of stats (values) from the last check

plugins

Instances of plugin objects to run for stat checks

stat_labels

Labels (names) of the stats to be checked

storage_enabled

Indication if internal storage of stats is enabled (boolean)

stored_stats

List of stats collected since enabling storage or last flush

Generated by Epydoc 2.1 on Fri Mar 17 09:16:19 2006 http://epydoc.sf.net