SAFplus Runtime Director API
3.0.5
|
This helper class contains all of the changing cluster data, and is used to ensure that updates occur atomically and quickly. More...
Public Member Functions | |
def | __init__ |
def | log |
def | clear |
Remove all AMF database Python objects. More... | |
def | load |
Load or re-load the AMF database into Python objects. More... | |
def | loadComps |
def | loadAssociatedData |
Iterates through the entity list loading all associated data into each entities' self.associatedData field. More... | |
def | connectEntities |
Private: This routine connects all entities parent/child relationships using the underlying C parent field. More... | |
def | loadNodes |
Private: Reloads the node information from the C layers (call load() instead) More... | |
def | loadSgs |
Private: Reloads the service group from the C layers (call load() instead) More... | |
def | calcCompToCsiType |
Public Attributes | |
amf | |
appDb | |
suppliedData | |
associatedDataKey | |
The key to use in the AMF to access clusterinfo specific data associated with each entity. More... | |
alive | |
entities | |
Dictionary to access any entity by AMF name. More... | |
nodeList | |
< Public interface returning a dictionary to access anything by name More... | |
nodes | |
< Public interface returning the list of "up" nodes More... | |
sgs | |
< Public interface returning a dictionary to access nodes by slot, name or IP address More... | |
sgList | |
List of all service groups. More... | |
sus | |
Dictionary to access service units by name. More... | |
suList | |
List of all service units. More... | |
sis | |
Dictionary to access service instances by name. More... | |
siList | |
List of all service instances. More... | |
csis | |
csiList | |
comps | |
Dictionary to access components by name. More... | |
compList | |
List of components. More... | |
apps | |
appList | |
controllers | |
master | |
deputy | |
lastReload | |
This helper class contains all of the changing cluster data, and is used to ensure that updates occur atomically and quickly.
Do not create directly!
In general, you will want to access cluster data via the ci global variable. However, if you want to take a top-down snapshot of the entire cluster state, then you may do something like:
snapShotState = ci.d
And then use "snapShotState" in a similar manner to ci:
print [x.name for x in snapShotState.entities.values()]
def clusterinfo.data.__init__ | ( | self, | |
amf, | |||
suppliedData, | |||
appDb, | |||
dataKey | |||
) |
def clusterinfo.data.calcCompToCsiType | ( | self, | |
sg | |||
) |
def clusterinfo.data.clear | ( | self | ) |
Remove all AMF database Python objects.
def clusterinfo.data.connectEntities | ( | self | ) |
Private: This routine connects all entities parent/child relationships using the underlying C parent field.
def clusterinfo.data.load | ( | self, | |
oldObj = None |
|||
) |
Load or re-load the AMF database into Python objects.
def clusterinfo.data.loadAssociatedData | ( | self, | |
key = None |
|||
) |
Iterates through the entity list loading all associated data into each entities' self.associatedData field.
key | Optional associated data key that will override the clusterinfo default key |
def clusterinfo.data.loadComps | ( | self, | |
comps2Load = None |
|||
) |
def clusterinfo.data.loadNodes | ( | self, | |
oldObj = None |
|||
) |
Private: Reloads the node information from the C layers (call load() instead)
def clusterinfo.data.loadSgs | ( | self | ) |
Private: Reloads the service group from the C layers (call load() instead)
def clusterinfo.data.log | ( | self, | |
s, | |||
severity = asp.CL_LOG_SEV_DEBUG |
|||
) |
clusterinfo.data.alive |
clusterinfo.data.amf |
clusterinfo.data.appDb |
clusterinfo.data.appList |
clusterinfo.data.apps |
clusterinfo.data.associatedDataKey |
The key to use in the AMF to access clusterinfo specific data associated with each entity.
Do not use.
clusterinfo.data.compList |
List of components.
clusterinfo.data.comps |
Dictionary to access components by name.
clusterinfo.data.controllers |
clusterinfo.data.csiList |
clusterinfo.data.csis |
clusterinfo.data.deputy |
clusterinfo.data.entities |
Dictionary to access any entity by AMF name.
clusterinfo.data.lastReload |
clusterinfo.data.master |
clusterinfo.data.nodeList |
< Public interface returning a dictionary to access anything by name
List of all nodes.
clusterinfo.data.nodes |
< Public interface returning the list of "up" nodes
Dictionary to access nodes by slot, name or IP address.
clusterinfo.data.sgList |
List of all service groups.
clusterinfo.data.sgs |
< Public interface returning a dictionary to access nodes by slot, name or IP address
Dictionary to access service groups by name.
clusterinfo.data.siList |
List of all service instances.
clusterinfo.data.sis |
Dictionary to access service instances by name.
clusterinfo.data.suList |
List of all service units.
clusterinfo.data.suppliedData |
clusterinfo.data.sus |
Dictionary to access service units by name.