SAFplus Runtime Director API  3.0.5
upgrade.UpgradeMgr Class Reference

This class manages all ongoing upgrades in the cluster. More...

Inheritance diagram for upgrade.UpgradeMgr:
Collaboration diagram for upgrade.UpgradeMgr:

Public Member Functions

def __init__
 
def get
 Get the upgrade session for a service group. More...
 
def add
 Start an upgrade session for a Service Group. More...
 
def rem
 Remove a Service Group's upgrade session. More...
 
def __iter__
 
- Public Member Functions inherited from upgrade.ChangeTracker
def __init__
 Constructor. More...
 
def changed
 Indicate that state has changed. More...
 
def changeWait
 Wait for a state change. More...
 

Public Attributes

 entities
 Dictionary of all current upgrades indexed by service group name. More...
 
 upSgList
 List of all current upgrades. More...
 
 changeFlag
 
- Public Attributes inherited from upgrade.ChangeTracker
 parent
 Change tracker hierarchy (if you are changed, your parent is marked as changed as well) More...
 
 generation
 Every time a change occurs, generation is incremented. More...
 
 changeFlag
 Python threading Event Object that implements the fundamental thread blocking mechanism. More...
 

Detailed Description

This class manages all ongoing upgrades in the cluster.

Constructor & Destructor Documentation

def upgrade.UpgradeMgr.__init__ (   self)

Member Function Documentation

def upgrade.UpgradeMgr.__iter__ (   self)
def upgrade.UpgradeMgr.add (   self,
  sg 
)

Start an upgrade session for a Service Group.

Parameters
sgAn object of type aspAmfEntity.AmfServiceGroup
def upgrade.UpgradeMgr.get (   self,
  sg,
  default = None 
)

Get the upgrade session for a service group.

Parameters
sgAn object of type aspAmfEntity.AmfServiceGroup
defaultreturn this if the sg is unknown.
Returns
an object of type UpgradeSg
def upgrade.UpgradeMgr.rem (   self,
  sg 
)

Remove a Service Group's upgrade session.

Parameters
sgAn object of type aspAmfEntity.AmfServiceGroup

Member Data Documentation

upgrade.UpgradeMgr.changeFlag
upgrade.UpgradeMgr.entities

Dictionary of all current upgrades indexed by service group name.

upgrade.UpgradeMgr.upSgList

List of all current upgrades.