Forms a bond to monitor another process. More...
Forms a bond to monitor another process.
The Bond class implements a bond, allowing you to monitor another process and be notified when it dies. In turn, it will be notified when you die.
def bondpy.bondpy.Bond.__init__ | ( | self, | |
topic, | |||
id, | |||
on_broken = None , |
|||
on_formed = None |
|||
) |
Constructs a bond, but does not connect.
topic | The topic used to exchange the bond status messages. |
id | The ID of the bond, which should match the ID used on the sister's end |
on_broken | callback that will be called when the bond is broken. |
on_formed | callback that will be called when the bond is formed. |
def bondpy.bondpy.Bond.__del__ | ( | self | ) |
def bondpy.bondpy.Bond.__repr__ | ( | self | ) |
def bondpy.bondpy.Bond._flush_pending_callbacks | ( | self | ) | [private] |
def bondpy.bondpy.Bond._on_bond_status | ( | self, | |
msg | |||
) | [private] |
def bondpy.bondpy.Bond._on_connect_timeout | ( | self | ) | [private] |
def bondpy.bondpy.Bond._on_disconnect_timeout | ( | self | ) | [private] |
def bondpy.bondpy.Bond._on_heartbeat_timeout | ( | self | ) | [private] |
def bondpy.bondpy.Bond._publish | ( | self, | |
active | |||
) | [private] |
def bondpy.bondpy.Bond._publishing_thread | ( | self | ) | [private] |
def bondpy.bondpy.Bond.break_bond | ( | self | ) |
def bondpy.bondpy.Bond.Connected | ( | self | ) |
def bondpy.bondpy.Bond.Death | ( | self | ) |
def bondpy.bondpy.Bond.get_connect_timeout | ( | self | ) |
def bondpy.bondpy.Bond.get_disconnect_timeout | ( | self | ) |
def bondpy.bondpy.Bond.get_heartbeat_period | ( | self | ) |
def bondpy.bondpy.Bond.get_heartbeat_timeout | ( | self | ) |
def bondpy.bondpy.Bond.Heartbeat | ( | self | ) |
def bondpy.bondpy.Bond.is_broken | ( | self | ) |
def bondpy.bondpy.Bond.set_broken_callback | ( | self, | |
on_broken | |||
) |
def bondpy.bondpy.Bond.set_connect_timeout | ( | self, | |
dur | |||
) |
def bondpy.bondpy.Bond.set_disconnect_timeout | ( | self, | |
dur | |||
) |
def bondpy.bondpy.Bond.set_formed_callback | ( | self, | |
on_formed | |||
) |
def bondpy.bondpy.Bond.set_heartbeat_period | ( | self, | |
per | |||
) |
def bondpy.bondpy.Bond.set_heartbeat_timeout | ( | self, | |
dur | |||
) |
def bondpy.bondpy.Bond.shutdown | ( | self | ) |
def bondpy.bondpy.Bond.SisterDied | ( | self | ) |
def bondpy.bondpy.Bond.start | ( | self | ) |
def bondpy.bondpy.Bond.StartDying | ( | self | ) |
def bondpy.bondpy.Bond.wait_until_broken | ( | self, | |
timeout = None |
|||
) |
def bondpy.bondpy.Bond.wait_until_formed | ( | self, | |
timeout = None |
|||
) |
bondpy::bondpy.Bond::__connect_timeout [private] |
bondpy::bondpy.Bond::__heartbeat_period [private] |
bondpy::bondpy.Bond::__heartbeat_timeout [private] |
bondpy::bondpy.Bond::__started [private] |
bondpy::bondpy.Bond::connect_timeout = property(get_connect_timeout, set_connect_timeout) [static] |
bondpy::bondpy.Bond::disconnect_timeout = property(get_disconnect_timeout, set_disconnect_timeout) [static] |
bondpy::bondpy.Bond::heartbeat_period = property(get_heartbeat_period, set_heartbeat_period) [static] |
bondpy::bondpy.Bond::heartbeat_timeout = property(get_heartbeat_timeout, set_heartbeat_timeout) [static] |