C# Class XenAdmin.Wizards.NewVMWizard.DiskGridRowItem

Inheritance: System.Windows.Forms.DataGridViewRow
Show file Open project: xenserver/xenadmin Class Usage Examples

Public Properties

Property Type Description
CanDelete bool
CanResize bool
Connection IXenConnection
Device VBD
Disk XenAPI.VDI
ImageToolTip string
MinSize long
OverCommit DiskOverCommit
SourceDisk XenAPI.VDI

Public Methods

Method Description
DiskGridRowItem ( IXenConnection connection, XenAPI.VDI vdi, VBD vbd, bool isNew, XenAPI.Host affinity ) : System
DiskGridRowItem ( IXenConnection connection, XmlNode diskNode, string vmName, XenAPI.Host affinity ) : System
UpdateDetails ( ) : void

Private Methods

Method Description
AddCells ( ) : void
GetBeskDiskStorage ( IXenConnection connection, XenAPI.VDI disk, XenAPI.Host affinity, SR suggestedSR ) : SR

Tries to find the best SR for the given VDI considering the suggestedSR which has priority over other SRs in this check. SuggestedSR, default SR, other SRs are checked. Returns first suitable SR or NULL.

IsSufficientFreeSpaceAvailableOnSrForVdi ( SR sr, XenAPI.VDI disk ) : bool

Checks whether there is enough space available on the SR to accommodate a VDI.

Method Details

DiskGridRowItem() public method

public DiskGridRowItem ( IXenConnection connection, XenAPI.VDI vdi, VBD vbd, bool isNew, XenAPI.Host affinity ) : System
connection IXenConnection
vdi XenAPI.VDI
vbd VBD
isNew bool
affinity XenAPI.Host
return System

DiskGridRowItem() public method

public DiskGridRowItem ( IXenConnection connection, XmlNode diskNode, string vmName, XenAPI.Host affinity ) : System
connection IXenConnection
diskNode System.Xml.XmlNode
vmName string
affinity XenAPI.Host
return System

UpdateDetails() public method

public UpdateDetails ( ) : void
return void

Property Details

CanDelete public property

public bool CanDelete
return bool

CanResize public property

public bool CanResize
return bool

Connection public property

public IXenConnection Connection
return IXenConnection

Device public property

public VBD Device
return VBD

Disk public property

public VDI,XenAPI Disk
return XenAPI.VDI

ImageToolTip public property

public string ImageToolTip
return string

MinSize public property

public long MinSize
return long

OverCommit public property

public DiskOverCommit OverCommit
return DiskOverCommit

SourceDisk public property

public VDI,XenAPI SourceDisk
return XenAPI.VDI