Annelidous-snapshot

 view release on metacpan or  search on metacpan

Annelidous/Connector.pm  view on Meta::CPAN

#!/usr/bin/perl
#
# Annelidous - the flexibile cloud management framework
# Copyright (C) 2009  Eric Windisch <eric@grokthis.net>
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

package Annelidous::Connector;

sub new {
	my $self={};
	bless $self, shift;
	return $self;
}

sub instance {
	my $self=shift;
	$self->{instance}=shift;
	return $self->{instance};
}

#sub vm {
#	my $self=shift;
#	return $self->{_vm};
#}

sub reboot {
    my $self=shift;
    $self->shutdown();
    $self->boot();
}

sub shutdown {
    die 'Must override shutdown method.';
}

sub console {
    die 'Must override console method.';
}

#sub transport {
#    shift->{_transport};
#}

#
# Module wrapper
#
sub _module_wrapper {
    #my ($self, $objkey, $obj, $arg) = @_;
    my $self=shift;
    my $objkey=shift;



( run in 1.219 second using v1.01-cache-2.11-cpan-e1769b4cff6 )