lib.cuckoo.core.resultserver.ResultServer

Package lib :: Package cuckoo :: Package core :: Module resultserver :: Class ResultServer |
[hide private]
[frames] | no frames]

# Class ResultServer

source code

    SocketServer.ThreadingMixIn --+
                                  |
    SocketServer.BaseServer --+   |
                              |   |
         SocketServer.TCPServer --+
                                  |
    SocketServer.ThreadingTCPServer --+
                                      |
                             object --+
                                      |
                                     ResultServer

Result server. Singleton!

This class handles results coming back from the analysis machines.

Instance Methods | [hide private]
__init__(self, *args, **kwargs) Constructor. | source code
add_task(self, task, machine) Register a task/machine with the ResultServer. | source code
del_task(self, task, machine) Delete ResultServer state and wait for pending RequestHandlers. | source code
register_handler(self, handler) Register a RequestHandler so that we can later wait for it. | source code
get_ctx_for_ip(self, ip) Return state for this IP's task. | source code
build_storage_path(self, ip) Initialize analysis storage folder. | source code
Inherited from `SocketServer.ThreadingMixIn`: `process_request`, `process_request_thread` Inherited from `SocketServer.TCPServer`: `close_request`, `fileno`, `get_request`, `server_activate`, `server_bind`, `server_close`, `shutdown_request` Inherited from `SocketServer.BaseServer`: `finish_request`, `handle_error`, `handle_request`, `handle_timeout`, `serve_forever`, `shutdown`, `verify_request` Inherited from `SocketServer.BaseServer` (private): `_handle_request_noblock` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| __metaclass__ = `Singleton`
| allow_reuse_address = `True`
| daemon_threads = `True`
Inherited from `SocketServer.TCPServer`: `address_family`, `request_queue_size`, `socket_type` Inherited from `SocketServer.BaseServer`: `timeout`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, *args, **kwargs) (Constructor) | source code
Constructor. May be extended, do not override. Overrides: object.__init__ (inherited documentation)