SAFplus Runtime Director API  3.0.5
clusterinfo Namespace Reference

This module provides an object-oriented perspective on the entire ASP AMF information model and the current state of all ASP AMF entities in the cluster. More...

Classes

class  ClusterInfo
 This singleton class represents the current cluster state and configuration; use the clusterinfo.ci global variable instead of creating one yourself. More...
 
class  data
 This helper class contains all of the changing cluster data, and is used to ensure that updates occur atomically and quickly. More...
 

Functions

def Session
 
def Log
 
def calcCompToCsiType
 Create a table of what components need what CsiType in a Service Group – used during when you want to add new components to a SG. More...
 

Variables

 fake = False
 
int NodeType = 1
 
tuple cfgpath = os.environ.get("ASP_CONFIG",os.environ.get("ASP_BINDIR","."))
 
float RefreshInterval = 1.9
 
 moduleLogSeverityCutoff = asp.CL_LOG_SEV_WARNING
 
tuple ci = ClusterInfo()
 ClusterInfo is a singleton class; this global variable is for use by everyone. More...
 

Detailed Description

This module provides an object-oriented perspective on the entire ASP AMF information model and the current state of all ASP AMF entities in the cluster.

It does so through a set of data structures that are available through the ClusterInfo class. To preserve atomicity the variables actually reference through a contained class, so please see the ClusterInfo class documentation to discover what member variables are available instead of looking at actual class members.

It is recommended that you use the global variable "ci" instead of creating your own clusterinfo object. For example: import clusterinfo print clusterinfo.ci.entities

Function Documentation

def clusterinfo.calcCompToCsiType (   sg)

Create a table of what components need what CsiType in a Service Group – used during when you want to add new components to a SG.

Parameters
sgService Group entity
def clusterinfo.Log (   str,
  sev,
  stk 
)

Variable Documentation

tuple clusterinfo.cfgpath = os.environ.get("ASP_CONFIG",os.environ.get("ASP_BINDIR","."))
tuple clusterinfo.ci = ClusterInfo()

ClusterInfo is a singleton class; this global variable is for use by everyone.

clusterinfo.fake = False
clusterinfo.moduleLogSeverityCutoff = asp.CL_LOG_SEV_WARNING
int clusterinfo.NodeType = 1
float clusterinfo.RefreshInterval = 1.9