Home | Trees | Index | Help |
|
---|
Package CedarBackup2 :: Module config :: Class StoreConfig |
|
object
--+
|
StoreConfig
Class representing a Cedar Backup store configuration.
As with all of the other classes that represent configuration
sections, all of these values are optional. It is up to some higher-level
construct to decide whether everything they need is filled in. Some
validation is done on non-None
assignments through the use
of the Python property()
construct.
VALID_MEDIA_TYPES
.
VALID_DEVICE_TYPES
.
writer.validateScsiId
.
Method Summary | |
---|---|
Constructor for the StoreConfig class. | |
Official string representation for class instance. | |
Informal string representation for class instance. | |
Definition of equals operator for this class. | |
Property target used to get the check data flag. | |
Property target used to get the device path. | |
Property target used to get the SCSI id. | |
Property target used to get the device type. | |
Property target used to get the drive speed. | |
Property target used to get the media type. | |
Property target used to get the source directory. | |
Property target used to get the midnite warning flag. | |
Property target used to set the check data flag. | |
Property target used to set the device path. | |
Property target used to set the SCSI id The SCSI id must be valid per writer.validateScsiId . | |
Property target used to set the device type. | |
Property target used to set the drive speed. | |
Property target used to set the media type. | |
Property target used to set the source directory. | |
Property target used to set the midnite warning flag. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
sourceDir : Directory whose contents should be written to media. | |
mediaType : Type of the media (see notes above). | |
deviceType : Type of the device (optional, see notes above). | |
devicePath : Filesystem device name for writer device. | |
deviceScsiId : SCSI id for writer device. | |
driveSpeed : Speed of the drive. | |
checkData : Whether resulting image should be validated. | |
warnMidnite : Whether to generate warnings for crossing midnite. |
Method Details |
---|
__init__(self,
sourceDir=None,
mediaType=None,
deviceType=None,
devicePath=None,
deviceScsiId=None,
driveSpeed=None,
checkData=False,
warnMidnite=False)
Constructor for the |
__repr__(self)
Official string representation for class instance.
|
__str__(self)
Informal string representation for class instance.
|
__cmp__(self,
other)
Definition of equals operator for this class.
|
_getCheckData(self)Property target used to get the check data flag. |
_getDevicePath(self)Property target used to get the device path. |
_getDeviceScsiId(self)Property target used to get the SCSI id. |
_getDeviceType(self)Property target used to get the device type. |
_getDriveSpeed(self)Property target used to get the drive speed. |
_getMediaType(self)Property target used to get the media type. |
_getSourceDir(self)Property target used to get the source directory. |
_getWarnMidnite(self)Property target used to get the midnite warning flag. |
_setCheckData(self, value)Property target used to set the check data flag. No validations, but we normalize the value toTrue or False .
|
_setDevicePath(self, value)Property target used to set the device path. The value must be an absolute path if it is notNone . It does not have to exist
on disk at the time of assignment.
|
_setDeviceScsiId(self, value)Property target used to set the SCSI id The SCSI id must be valid perwriter.validateScsiId .
|
_setDeviceType(self, value)Property target used to set the device type. The value must be one ofVALID_DEVICE_TYPES . This field mostly
exists to support future functionality.
|
_setDriveSpeed(self, value)Property target used to set the drive speed. The drive speed must be valid perwriter.validateDriveSpeed .
|
_setMediaType(self, value)Property target used to set the media type. The value must be one ofVALID_MEDIA_TYPES .
|
_setSourceDir(self, value)Property target used to set the source directory. The value must be an absolute path if it is notNone . It does not have to
exist on disk at the time of assignment.
|
_setWarnMidnite(self, value)Property target used to set the midnite warning flag. No validations, but we normalize the value toTrue or
False .
|
Property Details |
---|
sourceDirDirectory whose contents should be written to media.
|
mediaTypeType of the media (see notes above).
|
deviceTypeType of the device (optional, see notes above).
|
devicePathFilesystem device name for writer device.
|
deviceScsiIdSCSI id for writer device.
|
driveSpeedSpeed of the drive.
|
checkDataWhether resulting image should be validated.
|
warnMidniteWhether to generate warnings for crossing midnite.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Sep 4 13:49:32 2006 | http://epydoc.sf.net |