base/bif/messaging.bif.bro
-
Broker
-
Cluster
-
GLOBAL
Functions for peering and various messaging patterns.
Detailed Interface
Functions
-
Broker::__auto_publish
-
-
Broker::__auto_unpublish
-
-
Broker::__flush_logs
-
-
Broker::__forward
-
-
Broker::__publish_id
-
-
Broker::__subscribe
-
-
Broker::__unsubscribe
-
-
Broker::make_event
-
Create a data structure that may be used to send a remote event via
Broker::publish
.
Args: | an event, followed by a list of argument values that may be used
to call it. |
Returns: | opaque communication data that may be used to send a remote
event. |
-
Broker::publish
-
Publishes an event at a given topic.
Topic: | a topic associated with the event message. |
Args: | Either the event arguments as already made by
Broker::make_event or the argument list to pass along
to it. |
Returns: | true if the message is sent. |
-
Cluster::publish_hrw
-
Publishes an event to a node within a pool according to Rendezvous
(Highest Random Weight) hashing strategy.
Pool: | the pool of nodes that are eligible to receive the event. |
Key: | data used for input to the hashing function that will uniformly
distribute keys among available nodes. |
Args: | Either the event arguments as already made by
Broker::make_event or the argument list to pass along
to it. |
Returns: | true if the message is sent. |
-
Cluster::publish_rr
-
Publishes an event to a node within a pool according to Round-Robin
distribution strategy.
Pool: | the pool of nodes that are eligible to receive the event. |
Key: | an arbitrary string to identify the purpose for which you’re
distributing the event. e.g. consider using namespacing of your
script like “Intel::cluster_rr_key”. |
Args: | Either the event arguments as already made by
Broker::make_event or the argument list to pass along
to it. |
Returns: | true if the message is sent. |