Xen::Domain - xen domain representing object


Xen-Control documentation Contained in the Xen-Control distribution.

Index


Code Index:

NAME

Top

Xen::Domain - xen domain representing object

SYNOPSIS

Top

    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";

DESCRIPTION

Top

Object module representing Xen domain.

PROPERTIES

Top

    name
    id
    mem
    vcpus
    state
    times

METHODS

Top

new()

Object constructor.

AUTHOR

Top

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__