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

Class DeviceComponent

source code

       object --+    
                |    
Lockable.Lockable --+
                    |
                   DeviceComponent
Known Subclasses:
OSComponent.OSComponent, HWComponent.HWComponent

DeviceComponent is a mix-in class for all components of a device. These include LogicalComponent, Software, and Hardware.

Instance Methods [hide private]
 
getParentDeviceName(self)
return the name of this component's device
source code
 
hostname(self)
return the name of this component's device
source code
 
getParentDeviceUrl(self)
return the url of this component's device
source code
 
name(self)
Return the name of this component.
source code
 
monitored(self)
Return the monitored status of this component.
source code
 
getCollectors(self)
Return list of collectors that want to monitor this component
source code
 
getInstDescription(self)
Return some text that describes this component.
source code
 
getStatus(self, statClass=None)
Return the status number for this component of class statClass.
source code
 
getStatusString(self, statClass=None) source code
 
getManageIp(self)
Return the manageIP of the device of this component.
source code
 
getRRDTemplateByName(self, name)
Return the closest RRDTemplate named name by walking our aq chain.
source code
 
getNagiosTemplate(self, name=None) source code
 
getAqProperty(self, prop)
Get a property from ourself if it exsits then try serviceclass path.
source code
 
setAqProperty(self, prop, value, type)
Set a local prop if nessesaary on this service.
source code
 
getClassObject(self)
If you are going to use acquisition up different class path override this.
source code
 
manage_afterAdd(self, item, container)
Device only propagates afterAdd if it is the added object.
source code
 
manage_afterClone(self, item)
Not really sure when this is called.
source code
 
manage_beforeDelete(self, item, container)
Device only propagates beforeDelete if we are being deleted or copied.
source code

Inherited from Lockable.Lockable: getNextLockableParent, isLockedFromDeletion, isLockedFromUpdates, isUnlocked, lockFromDeletion, lockFromUpdates, lockStatus, lockWarning, sendEventWhenBlocked, setSendEventWhenBlockedFlag, unlock, unsetSendEventWhenBlockedFlag

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  event_key = 'Component'
  default_catalog = 'componentSearch'
  collectors = ('zenperfsnmp', 'zencommand', 'zenwinperf')
  security = ClassSecurityInfo()
  __ac_permissions__ = ()

Inherited from Lockable.Lockable: modelerLock, sendEventWhenBlockedFlag

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

name(self)

source code 
Return the name of this component. Default is id.

monitored(self)

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

getInstDescription(self)

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

manage_beforeDelete(self, item, container)

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