The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.hbring.HbRing Class Reference
Inheritance diagram for cma.hbring.HbRing:
Collaboration diagram for cma.hbring.HbRing:

Public Member Functions

def __init__ (self, name, ringtype)
 
def post_db_init (self)
 
def join (self, drone)
 
def leave (self, drone)
 
def are_partners (self, drone1, drone2)
 
def members (self)
 
def members_ring_order (self)
 
def AUDIT (self)
 
def __str__ (self)
 

Static Public Member Functions

def __meta_keyattrs__ ()
 

Data Fields

 ringtype
 
 name
 
 ourreltype
 
 ournexttype
 

Static Public Attributes

int SWITCH = 1
 
int SUBNET = 2
 
int THEONERING = 3
 
string memberprefix = 'RingMember_'
 
string nextprefix = 'RingNext_'
 

Detailed Description

Definition at line 32 of file hbring.py.

Constructor & Destructor Documentation

def cma.hbring.HbRing.__init__ (   self,
  name,
  ringtype 
)
Constructor for a heartbeat ring.

Definition at line 40 of file hbring.py.

Member Function Documentation

def cma.hbring.HbRing.__meta_keyattrs__ ( )
static

Definition at line 55 of file hbring.py.

def cma.hbring.HbRing.__str__ (   self)
def cma.hbring.HbRing.are_partners (   self,
  drone1,
  drone2 
)

Definition at line 249 of file hbring.py.

References cma.hbring.HbRing.ournexttype.

def cma.hbring.HbRing.AUDIT (   self)
Audit our ring to see if it's well-formed

Definition at line 292 of file hbring.py.

References cma.hbring.HbRing.members(), obsolete_cma.HbRing.members, cma.hbring.HbRing.members_ring_order(), cma.hbring.HbRing.ournexttype, and cma.hbring.HbRing.ourreltype.

Here is the call graph for this function:

def cma.hbring.HbRing.join (   self,
  drone 
)
def cma.hbring.HbRing.leave (   self,
  drone 
)

Definition at line 190 of file hbring.py.

References cma.hbring.HbRing._insertpoint1, cma.hbring.HbRing._insertpoint2, cma.hbring.HbRing.ournexttype, and cma.hbring.HbRing.ourreltype.

Referenced by cma.hbring.HbRing.join().

Here is the caller graph for this function:

def cma.hbring.HbRing.members (   self)

Definition at line 263 of file hbring.py.

References cma.hbring.HbRing.ourreltype.

Referenced by cma.hbring.HbRing.AUDIT().

Here is the caller graph for this function:

def cma.hbring.HbRing.members_ring_order (   self)

Definition at line 267 of file hbring.py.

References cma.hbring.HbRing._insertpoint1, and cma.hbring.HbRing.ournexttype.

Referenced by cma.hbring.HbRing.AUDIT().

Here is the caller graph for this function:

Field Documentation

string cma.hbring.HbRing.memberprefix = 'RingMember_'
static

Definition at line 37 of file hbring.py.

string cma.hbring.HbRing.nextprefix = 'RingNext_'
static

Definition at line 38 of file hbring.py.

cma.hbring.HbRing.ringtype

Definition at line 46 of file hbring.py.

int cma.hbring.HbRing.SUBNET = 2
static

Definition at line 35 of file hbring.py.

int cma.hbring.HbRing.SWITCH = 1
static

Definition at line 34 of file hbring.py.

int cma.hbring.HbRing.THEONERING = 3
static

Definition at line 36 of file hbring.py.


The documentation for this class was generated from the following file: