Package Products :: Package ZenStatus :: Module zenstatus :: Class Status |
[hide private]
[frames] | no frames]

# Class Status

source code

Class to track the status of all connection attempts to remote devices.

Instance Methods | [hide private]
__init__(self) | source code
Twisted deferred |
start(self, jobs) Start a scan cycle with the jobs to run. | source code
Twisted deferred |
next(self) Start and return the next job that can be scheduled to run. | source code
Twisted deferred |
testStop(self, result) Cleanup completed jobs and update stats. | source code
Twisted deferred |
success(self, result) Record a successful job. | source code
Twisted deferred |
failure(self, result) Record a failed job. | source code
boolean |
done(self) Are we done yet? | source code
tuple of ints |
stats(self) Report on the number of remaining, running, successful and failed jobs. | source code
duration(self) Total time that the daemon has been running jobs this scan cycle. | source code

Class Variables | [hide private]
| _running = `0`
| _fail = `0`
| _success = `0`
| _start = `0`
| _stop = `0`
| _defer = `None`

Method Details | [hide private]

### start(self, jobs) | source code
Start a scan cycle with the jobs to run. Parameters: `jobs` (list of job entries) - jobs to run Returns: Twisted deferred Twisted deferred

### next(self) | source code
Start and return the next job that can be scheduled to run. Returns: Twisted deferred job

### testStop(self, result) | source code
Cleanup completed jobs and update stats. Parameters: `result` (Twisted deferred) - ignored Returns: Twisted deferred Twisted deferred

### success(self, result) | source code
Record a successful job. Parameters: `result` (Twisted deferred) - ignored Returns: Twisted deferred Twisted deferred

### failure(self, result) | source code
Record a failed job. Parameters: `result` (Twisted deferred) - ignored Returns: Twisted deferred Twisted deferred

### done(self) | source code
Are we done yet? Returns: boolean is there anything left to do?

### stats(self) | source code
Report on the number of remaining, running, successful and failed jobs. Returns: tuple of ints counts of job status