Package ZenModel :: Module DeviceComponent :: Class DeviceComponent
[show private | hide private]
[frames | no frames]

Type DeviceComponent

object --+    
         |    
  Lockable --+
             |
            DeviceComponent

Known Subclasses:
HWComponent, OSComponent

DeviceComponent is a mix-in class for all components of a device. These include LogicalComponent, Software, and Hardware.
Method Summary
  getAqProperty(self, prop)
Get a property from ourself if it exsits then try serviceclass path.
  getClassObject(self)
If you are going to use acquisition up different class path override this.
  getInstDescription(self)
Return some text that describes this component.
  getManageIp(self)
Return the manageIP of the device of this component.
  getNagiosTemplate(self, name)
  getParentDeviceName(self)
return the name of this component's device
  getParentDeviceUrl(self)
return the url of this component's device
  getRRDTemplateByName(self, name)
Return the closest RRDTemplate named name by walking our aq chain.
  getStatus(self, statClass)
Return the status number for this component of class statClass.
  getStatusString(self, statClass)
  hostname(self)
return the name of this component's device
  manage_afterAdd(self, item, container)
Device only propagates afterAdd if it is the added object.
  manage_afterClone(self, item)
Not really sure when this is called.
  manage_beforeDelete(self, item, container)
Device only propagates beforeDelete if we are being deleted or copied.
  monitored(self)
Return the monitored status of this component.
  name(self)
Return the name of this component.
  setAqProperty(self, prop, value, type)
Set a local prop if nessesaary on this service.
Inherited from Lockable: getNextLockableParent, isLockedFromDeletion, isLockedFromUpdates, isUnlocked, lockFromDeletion, lockFromUpdates, lockStatus, lockWarning, sendEventWhenBlocked, setSendEventWhenBlockedFlag, unlock, unsetSendEventWhenBlockedFlag
Inherited from object: __init__, __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variable Summary
tuple __ac_permissions__ = ()
str default_catalog = 'componentSearch'
str event_key = 'Component'
tuple manage_afterAdd__roles__ = ('Manager',)
tuple manage_afterClone__roles__ = ('Manager',)
tuple manage_beforeDelete__roles__ = ('Manager',)
Inherited from Lockable: modelerLock, sendEventWhenBlockedFlag

Method Details

getAqProperty(self, prop)

Get a property from ourself if it exsits then try serviceclass path.

getClassObject(self)

If you are going to use acquisition up different class path override this.

getInstDescription(self)

Return some text that describes this component. Default is name.

getManageIp(self)

Return the manageIP of the device of this component.

getParentDeviceName(self)

return the name of this component's device

getParentDeviceUrl(self)

return the url of this component's device

getRRDTemplateByName(self, name)

Return the closest RRDTemplate named name by walking our aq chain.

getStatus(self, statClass=None)

Return the status number for this component of class statClass.

hostname(self)

return the name of this component's device

manage_afterAdd(self, item, container)

Device only propagates afterAdd if it is the added object.

manage_afterClone(self, item)

Not really sure when this is called.

manage_beforeDelete(self, item, container)

Device only propagates beforeDelete if we are being deleted or copied. Moving and renaming don't propagate.

monitored(self)

Return the monitored status of this component. Default is False.

name(self)

Return the name of this component. Default is id.

setAqProperty(self, prop, value, type)

Set a local prop if nessesaary on this service.

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
()                                                                     

default_catalog

Type:
str
Value:
'componentSearch'                                                      

event_key

Type:
str
Value:
'Component'                                                            

manage_afterAdd__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_afterClone__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_beforeDelete__roles__

Type:
tuple
Value:
('Manager',)                                                           

Generated by Epydoc 2.1 on Thu Aug 16 09:55:09 2007 http://epydoc.sf.net