## no critic (RequireUseStrict)
package Tapper::MCP::Scheduler::Algorithm;
BEGIN {
$Tapper::MCP::Scheduler::Algorithm::AUTHORITY = 'cpan:TAPPER';
}
{
$Tapper::MCP::Scheduler::Algorithm::VERSION = '4.1.2';
}
# ABSTRACT: name of the queue has to be unique
use 5.010;
use Moose;
use Tapper::Model 'model';
sub update_queue {
my ($self, $q) = @_;
# interface
die "Interface update_queue not implemented";
}
sub lookup_next_queue {
my ($self, $queues) = @_;
# interface
die "Interface lookup_next_queue not implemented";
}
sub get_next_queue {
my ($self, $queues) = @_;
# interface
die "Interface get_next_queue not implemented";
}
with 'MooseX::Traits';
1;
=pod
=encoding utf-8
=head1 NAME
Tapper::MCP::Scheduler::Algorithm - name of the queue has to be unique
=head2 add_queue
Add a new queue to the scheduler.
@param Scheduler::Queue -
@return success - 0
@return error - error string
=head2 remove_queue
Remove a queue from scheduling
@param string - name of the queue to be removed
@return success - 0
@return error - error string
=head2 update_queue
Update the time entry of the given queue
@param string - name of the queue
@return success - 0
=head1 AUTHOR
AMD OSRC Tapper Team <tapper@amd64.org>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..
This is free software, licensed under:
The (two-clause) FreeBSD License
=cut
__END__