GoVirt.VmPool

g GObject.GInterface GObject.GInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object GoVirt.Resource GoVirt.Resource GObject.Object->GoVirt.Resource Gio.Initable->GoVirt.Resource GoVirt.VmPool GoVirt.VmPool GoVirt.Resource->GoVirt.VmPool

Subclasses:

None

Methods

Inherited:

GoVirt.Resource (10), GObject.Object (37), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

class

new ()

allocate_vm (proxy)

allocate_vm_async (proxy, cancellable, callback, *user_data)

allocate_vm_finish (result)

Virtual Methods

Inherited:

GoVirt.Resource (2), GObject.Object (7), Gio.Initable (1)

Properties

Inherited:

GoVirt.Resource (5)

Name

Type

Flags

Short Description

max-user-vms

int

r/w

The number of VMs a user can allocate from the pool

prestarted-vms

int

r/w

The number of VMs prestarted in the pool

size

int

r/w

The number of VMs in the pool

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GoVirt.Resource

r

Class Details

class GoVirt.VmPool(**kwargs)
Bases:

GoVirt.Resource

Abstract:

No

Structure:

GoVirt.VmPoolClass

classmethod new()
Return type:

GoVirt.VmPool

allocate_vm(proxy)
Parameters:

proxy (GoVirt.Proxy) –

Raises:

GLib.Error

Return type:

bool

allocate_vm_async(proxy, cancellable, callback, *user_data)
Parameters:
allocate_vm_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

Property Details

GoVirt.VmPool.props.max_user_vms
Name:

max-user-vms

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

The number of VMs a user can allocate from the pool

GoVirt.VmPool.props.prestarted_vms
Name:

prestarted-vms

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

The number of VMs prestarted in the pool

GoVirt.VmPool.props.size
Name:

size

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

The number of VMs in the pool