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

# Class FileSystem

source code

                     object --+
                              |
              Lockable.Lockable --+
                                  |
    DeviceComponent.DeviceComponent --+
                                      |
        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
availBlocks(self, default=None) Return the number of available 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`, `getPrettyLink`, `isUserCreated`, `manage_deleteComponent`, `manage_updateComponent`, `setUserCreateFlag` Inherited from `DeviceComponent.DeviceComponent`: `filterAutomaticCreation`, `getAqProperty`, `getClassObject`, `getCollectors`, `getIconPath`, `getInstDescription`, `getManageIp`, `getNagiosTemplate`, `getParentDeviceName`, `getParentDeviceTitle`, `getParentDeviceUrl`, `getRRDContextData`, `getStatus`, `getStatusString`, `getSubComponentsNoIndexGen`, `hostname`, `monitored`, `setAqProperty` Inherited from `Lockable.Lockable`: `getNextLockableParent`, `isLockedFromDeletion`, `isLockedFromUpdates`, `isUnlocked`, `lockFromDeletion`, `lockFromUpdates`, `lockStatus`, `lockWarning`, `sendEventWhenBlocked`, `setSendEventWhenBlockedFlag`, `unlock`, `unsetSendEventWhenBlockedFlag`

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`

Method Details | [hide private]

### capacity(self) | source code
Return the percentage capacity of a filesystems using its rrd file. Calculate using available blocks instead used blocks to account for reserved blocks.

### 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",)},)},