fail2ban.server.jailthread module
*********************************

class fail2ban.server.jailthread.JailThread(name=None)

   Bases: "threading.Thread"

   Abstract class for threading elements in Fail2Ban.

   Attributes:
      "daemon"
         A boolean value indicating whether this thread is a daemon
         thread.

      "ident"
         Thread identifier of this thread or None if it has not been
         started.

      "name"
         A string used for identification purposes only.

      "status"
         Abstract - Should provide status information.

      **active** : bool
         Control the state of the thread.

      **idle** : bool
         Control the idle state of the thread.

      **sleeptime** : int
         The time the thread sleeps for in the loop.

   -[ Methods ]-

   +------------+--------------------------------------------------------------------------------------------+
   | "isAlive"  | Return whether the thread is alive.                                                        |
   | (self)     |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "is_alive  | Return whether the thread is alive.                                                        |
   | "(self)    |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "join"(se  | Safer join, that could be called also for not started (or ended) threads (used for         |
   | lf)        | cleanup).                                                                                  |
   +------------+--------------------------------------------------------------------------------------------+
   | "run"(sel  | Abstract - Called when thread starts, thread stops when returns.                           |
   | f)         |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "start"(s  | Sets active flag and starts thread.                                                        |
   | elf)       |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "status"(  | Abstract - Should provide status information.                                              |
   | self[,     |                                                                                            |
   | flavor])   |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+
   | "stop"(se  | Sets *active* property to False, to flag run method to return.                             |
   | lf)        |                                                                                            |
   +------------+--------------------------------------------------------------------------------------------+

   +---------------+------------+
   | **getName**   |            |
   +---------------+------------+
   | **isDaemon**  |            |
   +---------------+------------+
   | **setDaemon** |            |
   +---------------+------------+
   | **setName**   |            |
   +---------------+------------+

   isAlive(self)

      Return whether the thread is alive.

      This method returns True just before the run() method starts
      until just after the run() method terminates. See also the
      module function enumerate().

   join(self)

      Safer join, that could be called also for not started (or ended)
      threads (used for cleanup).

   abstract run(self)

      Abstract - Called when thread starts, thread stops when returns.

   start(self)

      Sets active flag and starts thread.

   abstract status(self, flavor='basic')

      Abstract - Should provide status information.

   stop(self)

      Sets *active* property to False, to flag run method to return.
