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

Class FileSystem

source code

                                                       object --+            
                                                                |            
                                                Lockable.Lockable --+        
                                                                    |        
                                      DeviceComponent.DeviceComponent --+    
                                                                        |    
                                                   object --+           |    
                                                            |           |    
                                    ZenModelBase.ZenModelBase --+       |    
                                                                |       |    
Products.ZenRelations.RelationshipManager.RelationshipManager --+       |    
                                                                |       |    
                                      ExtensionClass.Base --+   |       |    
                                                            |   |       |    
                                       OFS.History.Historical --+       |    
                                                                |       |    
                                                   object --+   |       |    
                                                            |   |       |    
                                          ZenPacker.ZenPacker --+       |    
                                                                |       |    
                                            ZenModelRM.ZenModelRM --+   |    
                                                                    |   |    
                                  DeviceResultInt.DeviceResultInt --+   |    
                                                                    |   |    
                                                       object --+   |   |    
                                                                |   |   |    
                                              EventView.EventView --+   |    
                                                                    |   |    
                                                       object --+   |   |    
                                                                |   |   |    
                                                  RRDView.RRDView --+   |    
                                                                    |   |    
                                          ManagedEntity.ManagedEntity --+    
                                                                        |    
                                                  OSComponent.OSComponent --+
                                                                            |
                                                                           FileSystem

FileSystem object

Instance Methods [hide private]
 
getTotalBlocks(self) source code
 
totalBytes(self)
Return the total bytes of a filesytem
source code
 
totalBytesString(self)
Return the number of total bytes in human readable from ie 10MB
source code
 
usedBytes(self)
Return the number of used bytes on a filesytem.
source code
 
usedBytesString(self)
Return the number of used bytes in human readable form ie 10MB
source code
 
availBytes(self)
Return the number of availible bytes for this filesystem
source code
 
availBytesString(self)
Return the number of availible bytes in human readable form ie 10MB
source code
 
availFiles(self)
Not implemented returns 0
source code
 
capacity(self)
Return the percentage capacity of a filesystems using its rrd file
source code
 
inodeCapacity(self)
Not implemented returns 0
source code
 
usedBlocks(self, default=None)
Return the number of used blocks stored in the filesystem's rrd file
source code
 
usedBlocksString(self)
Return the number of used blocks in human readable form ie 10MB
source code
 
getRRDNames(self)
Return the datapoint name of this filesystem 'usedBlocks_usedBlocks'
source code
 
viewName(self)
Return the mount point name of a filesystem '/boot'
source code
 
name(self)
Return the mount point name of a filesystem '/boot'
source code
 
manage_editFileSystem(self, monitor=False, mount=None, storageDevice=None, type=None, blockSize=None, totalFiles=None, maxNameLen=None, snmpindex=None, REQUEST=None)
Edit a Service from a web page.
source code

Inherited from OSComponent.OSComponent: device, getIconPath, getPrettyLink, isUserCreated, manage_deleteComponent, manage_updateComponent, setUserCreateFlag

Inherited from DeviceComponent.DeviceComponent: filterAutomaticCreation, getAqProperty, getClassObject, getCollectors, getInstDescription, getManageIp, getNagiosTemplate, getParentDeviceName, getParentDeviceUrl, getRRDContextData, getStatus, getStatusString, hostname, manage_afterAdd, manage_afterClone, manage_beforeDelete, monitored, setAqProperty

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

Inherited from ZenModelRM.ZenModelRM: __init__, changePythonClass, creator, editableDeviceList, findChild, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, index_object, primarySortKey, reindex_all, rename, unindex_object, zmanage_addProperty, zmanage_delObjects, zmanage_delProperties, zmanage_editProperties, zmanage_exportObject, zmanage_importObject, zmanage_importObjects

Inherited from ZenModelBase.ZenModelBase: __call__, __hash__, all_meta_types, aqBaseHasAttr, breadCrumbs, callZenScreen, checkRemotePerm, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getBreadCrumbUrlPath, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getUnusedId, getZ, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, urlLink, view, visibleCustPropertyMap, yesterdayDate, zenScreenUrl, zenpathjoin, zenpathsplit, zentinelTabs

Inherited from OFS.History.Historical: manage_afterHistoryCopy, manage_beforeHistoryCopy, manage_change_history, manage_historicalComparison, manage_historyCompare, manage_historyCopy

Inherited from ZenPacker.ZenPacker: addToZenPack, eligiblePacks, findObject

Inherited from DeviceResultInt.DeviceResultInt: getDeviceClassName, getDeviceClassPath, getDeviceIp, getDeviceIpAddress, getDeviceLink, getDeviceMacaddress, getDeviceName, getDeviceUrl, getPingStatus, getPingStatusNumber, getProdState, getSnmpStatus, getSnmpStatusNumber, isResultLockedFromDeletion, isResultLockedFromUpdates, sendEventWhenResultBlocked

Inherited from EventView.EventView: convertEventField, getEventDetail, getEventDetailFromStatusOrHistory, getEventHistory, getEventManager, getEventOwnerList, getEventSummary, getStatusCssClass, getStatusImgSrc, manage_ackBatchEvents, manage_ackEvents, manage_addLogMessage, manage_createEventMap, manage_deleteBatchEvents, manage_deleteEvents, manage_deleteHeartbeat, manage_setEventStates, manage_undeleteBatchEvents, manage_undeleteEvents

Inherited from RRDView.RRDView: cacheRRDValue, fetchRRDValue, fetchRRDValues, fullRRDPath, getDefaultGraphDefs, getGraphDef, getGraphDefUrl, getRRDDataPoint, getRRDDataPoints, getRRDFileName, getRRDPaths, getRRDSum, getRRDTemplate, getRRDTemplateByName, getRRDTemplateName, getRRDTemplates, getRRDValue, getRRDValues, getThresholdInstances, getThresholds, makeLocalRRDTemplate, removeLocalRRDTemplate, rrdPath, snmpIgnore

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

Class Variables [hide private]
  meta_type = 'FileSystem'
  portal_type = 'FileSystem'
  manage_editFileSystemForm = DTMLFile('dtml/manageEditFileSyste...
  mount = ""
  storageDevice = ""
  type = ""
  blockSize = 0
  totalBlocks = 0L
  totalFiles = 0L
  maxNameLen = 0
  security = ClassSecurityInfo()
  _properties = OSComponent._properties+({'id': 'mount', 'type':...
  _relations = OSComponent._relations+(("os", ToOne(ToManyCont, ...
  factory_type_information = {'id': 'FileSystem', 'meta_type': '...

Inherited from OSComponent.OSComponent: isUserCreatedFlag

Inherited from DeviceComponent.DeviceComponent: __pychecker__, collectors, default_catalog, event_key, perfmonInstance

Inherited from Lockable.Lockable: modelerLock, sendEventWhenBlockedFlag

Inherited from ManagedEntity.ManagedEntity: monitor, snmpindex

Inherited from ZenModelRM.ZenModelRM: isInTree

Inherited from ZenModelBase.ZenModelBase: index_html, sub_meta_types

Inherited from OFS.History.Historical: HistoricalRevisions, __ac_permissions__, manage_change_history_page, manage_options

Inherited from OFS.History.Historical (private): _manage_historyComparePage

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getRRDNames(self)

source code 
Return the datapoint name of this filesystem 'usedBlocks_usedBlocks'
Overrides: RRDView.RRDView.getRRDNames

viewName(self)

source code 
Return the mount point name of a filesystem '/boot'
Overrides: ZenModelRM.ZenModelRM.viewName

name(self)

source code 
Return the mount point name of a filesystem '/boot'
Overrides: DeviceComponent.DeviceComponent.name

Class Variable Details [hide private]

manage_editFileSystemForm

Value:
DTMLFile('dtml/manageEditFileSystem', globals())

_properties

Value:
OSComponent._properties+({'id': 'mount', 'type': 'string', 'mode': ''}\
, {'id': 'storageDevice', 'type': 'string', 'mode': ''}, {'id': 'type'\
, 'type': 'string', 'mode': ''}, {'id': 'blockSize', 'type': 'int', 'm\
ode': ''}, {'id': 'totalBlocks', 'type': 'long', 'mode': ''}, {'id': '\
totalFiles', 'type': 'long', 'mode': ''}, {'id': 'maxNameLen', 'type':\
 'int', 'mode': ''},)

_relations

Value:
OSComponent._relations+(("os", ToOne(ToManyCont, "Products.ZenModel.Op\
eratingSystem", "filesystems")),)

factory_type_information

Value:
{'id': 'FileSystem', 'meta_type': 'FileSystem', 'description': """Arbi\
trary device grouping class""", 'icon': 'FileSystem_icon.gif', 'produc\
t': 'ZenModel', 'factory': 'manage_addFileSystem', 'immediate_view': '\
viewFileSystem', 'actions':({'id': 'status', 'name': 'Status', 'action\
': 'viewFileSystem', 'permissions':(ZEN_VIEW,)}, {'id': 'events', 'nam\
e': 'Events', 'action': 'viewEvents', 'permissions':(ZEN_VIEW,)}, {'id\
': 'perfConf', 'name': 'Template', 'action': 'objTemplates', 'permissi\
ons':("Change Device",)}, {'id': 'viewHistory', 'name': 'Modifications\
...