The Assimilation Monitoring Project
cma::cma::HbRing Class Reference

Public Member Functions

def __init__
def join
def leave
 FIXME: Ought to label relationships with IP addresses involved.
def members
def membersfromlist
def __str__

Data Fields

 ringtype
 name
 parentring
 ourreltype
 ournexttype
 insertpoint1
 insertpoint2
 FIXME: Ought to label ring membership relationships with IP involved (see comments below)

Static Public Attributes

int SWITCH = 1
int SUBNET = 2
int THEONERING = 3
string memberprefix = 'RingMember_'
string nextprefix = 'RingNext_'
dictionary ringnames = {}
tuple nextnext = self.insertpoint2.node.get_single_related_node(neo4j.Direction.OUTGOING, self.ournexttype)
tuple point1rel = self.insertpoint1.node.get_single_relationship(neo4j.Direction.OUTGOING, self.ournexttype)
 point1rel = None
tuple ringrel = drone.node.get_single_relationship(neo4j.Direction.OUTGOING, self.ourreltype)
 ringrel = None
tuple relationships = drone.node.get_relationships('all', self.ournexttype)
 rel = None
 relationships = None
 node = prevnode
tuple partner = DroneInfo(node)
tuple prevdrone = DroneInfo(prevnode['name'])
tuple nextdrone = DroneInfo(nextnode['name'])

Detailed Description

Definition at line 438 of file cma.py.


Constructor & Destructor Documentation

def cma::cma::HbRing::__init__ (   self,
  name,
  ringtype,
  parentring = None 
)
Constructor for a heartbeat ring.
Although we generally avoid keeping hash tables of nodes in the
database, I'm currently making an exception for rings.  There are
many fewer of those than any other kind of node.

Definition at line 448 of file cma.py.


Member Function Documentation

def cma::cma::HbRing::__str__ (   self)

Definition at line 640 of file cma.py.

def cma::cma::HbRing::join (   self,
  drone 
)

Definition at line 497 of file cma.py.

def cma::cma::HbRing::leave (   self,
  drone 
)

FIXME: Ought to label relationships with IP addresses involved.

Definition at line 563 of file cma.py.

def cma::cma::HbRing::members (   self)

Definition at line 621 of file cma.py.

def cma::cma::HbRing::membersfromlist (   self)

Definition at line 627 of file cma.py.


Field Documentation

Definition at line 452 of file cma.py.

FIXME: Ought to label ring membership relationships with IP involved (see comments below)

Definition at line 452 of file cma.py.

string cma::cma::HbRing::memberprefix = 'RingMember_' [static]

Definition at line 443 of file cma.py.

Definition at line 452 of file cma.py.

tuple cma::cma::HbRing::nextdrone = DroneInfo(nextnode['name']) [static]

Definition at line 608 of file cma.py.

tuple cma::cma::HbRing::nextnext = self.insertpoint2.node.get_single_related_node(neo4j.Direction.OUTGOING, self.ournexttype) [static]

Definition at line 539 of file cma.py.

string cma::cma::HbRing::nextprefix = 'RingNext_' [static]

Definition at line 444 of file cma.py.

cma::cma::HbRing::node = prevnode [static]

Definition at line 595 of file cma.py.

Definition at line 452 of file cma.py.

Definition at line 452 of file cma.py.

Definition at line 452 of file cma.py.

Definition at line 597 of file cma.py.

tuple cma::cma::HbRing::point1rel = self.insertpoint1.node.get_single_relationship(neo4j.Direction.OUTGOING, self.ournexttype) [static]

Definition at line 547 of file cma.py.

cma::cma::HbRing::point1rel = None [static]

Definition at line 549 of file cma.py.

tuple cma::cma::HbRing::prevdrone = DroneInfo(prevnode['name']) [static]

Definition at line 607 of file cma.py.

cma::cma::HbRing::rel = None [static]

Definition at line 590 of file cma.py.

tuple cma::cma::HbRing::relationships = drone.node.get_relationships('all', self.ournexttype) [static]

Definition at line 585 of file cma.py.

Definition at line 591 of file cma.py.

dictionary cma::cma::HbRing::ringnames = {} [static]

Definition at line 446 of file cma.py.

tuple cma::cma::HbRing::ringrel = drone.node.get_single_relationship(neo4j.Direction.OUTGOING, self.ourreltype) [static]

Definition at line 581 of file cma.py.

cma::cma::HbRing::ringrel = None [static]

Definition at line 583 of file cma.py.

Definition at line 452 of file cma.py.

int cma::cma::HbRing::SUBNET = 2 [static]

Definition at line 441 of file cma.py.

int cma::cma::HbRing::SWITCH = 1 [static]

Definition at line 440 of file cma.py.

int cma::cma::HbRing::THEONERING = 3 [static]

Definition at line 442 of file cma.py.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines