| Xen-Control documentation | Contained in the Xen-Control distribution. |
Xen::Domain - xen domain representing object
my $domain = Xen::Domain->new(
'name' => 'lenny',
'id' => 1,
'mem' => 256,
'vcpus' => 2,
'state' => '-b----',
'times' => 11.5,
);
print $domain->name, ' uses ', $domain->mem, 'MB of memory.', "\n";
Object module representing Xen domain.
name
id
mem
vcpus
state
times
Object constructor.
Jozef Kutej
| Xen-Control documentation | Contained in the Xen-Control distribution. |
package Xen::Domain;
use warnings; use strict; our $VERSION = '0.01'; use base 'Class::Accessor::Fast';
__PACKAGE__->mk_accessors(qw{ name id mem vcpus state times });
sub new { my $class = shift; my $self = $class->SUPER::new({ @_ }); return $self; } 1; __END__