Home | Trees | Indices | Help |
---|
|
object --+ | Gateway
Used to synchronise with hubs.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
We often check if we're connected to any hubs often just to ensure we don't waste time processing if there is no-one listening. @return True if at least one hub is connected, False otherwise @rtype Bool |
Disengage from the specified hub. Don't actually need to clean up connections here like we do in shutdown - that can be handled from the watcher thread itself.
|
Process the list of local connections and check against the current flip rules and patterns for changes. If a rule has become (un)available take appropriate action.
|
Process the list of local connections and check against the current pull rules and patterns for changes. If a rule has become (un)available take appropriate action. This is called by the watcher thread. The remote_gateway_hub_index is always a full dictionary of all remote gateway and hub key-value pairs - it is only included as an argument here to save processing doubly in the watcher thread.
|
Process the list of local connections and check against the current rules and patterns for changes. If a rule has become (un)available take appropriate action.
|
Used as a callback for incoming requests on redis pubsub channels. It gets assigned to RedisManager.callback.
|
Configures the watcher period. This is useful to slow/speed up the watcher loop. Quite often you want it polling quickly early while configuring connections, but on long loops later when it does not have to do very much except look for shutdown. @param request @type gateway_srvs.SetWatcherPeriodRequest @return service response @rtgateway_srvs.srv.SetWatcherPeriodResponse |
Puts/Removes a number of rules on the public interface watchlist. As local rules matching these rules become available/go away, the public interface is modified accordingly. A manual update is done at the end of the advertise call to quickly capture existing rules @param request @type gateway_srvs.AdvertiseRequest @return service response @rtgateway_srvs.srv.AdvertiseReponse |
Toggles the advertise all mode. If advertising all, an additional blacklist parameter can be supplied which includes all the topics that will not be advertised/watched for. This blacklist is added to the default blacklist of the public interface @param request @type gateway_srvs.AdvertiseAllRequest @return service response @rtype gateway_srvs.AdvertiseAllReponse |
Puts flip rules on a watchlist which (un)flips them when they become (un)available. @param request @type gateway_srvs.RemoteRequest @return service response @rtype gateway_srvs.RemoteResponse |
Flips everything except a specified blacklist to a particular gateway, or if the cancel flag is set, clears all flips to that gateway. @param request @type gateway_srvs.RemoteAllRequest @return service response @rtype gateway_srvs.RemoteAllResponse |
Puts a single rule on a watchlist and pulls it from a particular gateway when it becomes (un)available. @param request @type gateway_srvs.RemoteRequest @return service response @rtype gateway_srvs.RemoteResponse |
Pull everything except a specified blacklist from a particular gateway, or if the cancel flag is set, clears all pulls from that gateway. @param request @type gateway_srvs.RemoteAllRequest @return service response @rtype gateway_srvs.RemoteAllResponse |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Aug 26 15:54:18 2015 | http://epydoc.sourceforge.net |