intelmq.bots.collectors.stomp package¶
Submodules¶
intelmq.bots.collectors.stomp.collector module¶
-
intelmq.bots.collectors.stomp.collector.BOT¶ alias of
intelmq.bots.collectors.stomp.collector.StompCollectorBot
-
class
intelmq.bots.collectors.stomp.collector.StompCollectorBot(bot_id: str, start: bool = False, sighup_event=None, disable_multithreading: Optional[bool] = None)¶ Bases:
intelmq.lib.bot.CollectorBotmain class for the STOMP protocol collector
-
collector_empty_process= True¶
-
conn= False¶
-
init()¶
-
process()¶
-
shutdown()¶
-
-
class
intelmq.bots.collectors.stomp.collector.StompListener(n6stompcollector, conn, destination)¶ Bases:
stomp.listener.PrintingListenerthe stomp listener gets called asynchronously for every STOMP message
-
on_disconnected()¶ Called by the STOMP connection when a TCP/IP connection to the STOMP server has been lost. No messages should be sent via the connection until it has been reestablished.
-
on_error(headers, message)¶ - Parameters
headers (dict) –
body –
-
on_heartbeat_timeout()¶ Called by the STOMP connection when a heartbeat message has not been received beyond the specified period.
-
on_message(headers, message)¶ - Parameters
headers (dict) –
body –
-
-
intelmq.bots.collectors.stomp.collector.connect_and_subscribe(conn, logger, destination, start=False)¶