Halberd.crew.ScanState

Package Halberd :: Module crew :: Class ScanState |
[hide private]
[frames] | no frames]

# Class ScanState

source code

Shared state among scanner threads.

Instance Methods | [hide private]
__init__(self) Initializes shared state among scanning threads. | source code
`tuple` |
getStats(self) Provides statistics about the scanning process. | source code
insertClue(self, clue) Inserts a clue in the list if it is new. | source code
`list` |
getClues(self) Clue accessor. | source code
incMissed(self) Increase the counter of missed replies. | source code
setError(self, err) Signal an error condition. | source code
getError(self) Returns the reason of the error condition. | source code

Instance Variables | [hide private]
`threading.Event` caught with an exception). | shouldstop Signals when the threads should stop scanning.

Method Details | [hide private]

### getStats(self) | source code
Provides statistics about the scanning process. Returns: `tuple` Number of clues gathered so far, number of successful requests and number of unsuccessful ones (missed replies).

### getClues(self) | source code
Clue accessor. Returns: `list` A copy of all obtained clues.