HTTP::Balancer::Model - the base class of models of HTTP::Balancer
package HTTP::Balancer::Model::Foo; use Modern::Perl; use Moose; extends qw(HTTP::Balancer::Model); use MoooseX::Storage; with Storage(format => 'YAML', io => 'File');
returns the list of last name of HTTP::Balancer::Model::*
class method and instance method
returns lowercase of last name of current model
returns the directory store the entities of current model
instance method
returns the path for storing current object
class method
returns all entities stored in model_dir, sorted with id.
save current object into model_dir, named as its id.
generate auto-incremented id for new object not on disk yet.
returns all object restored from disk
call \&closure on each instance if given.
returns the first object satisfying the condition from disk.
returns all objects satisfying the condition from disk
remove the instance from disk.
list names of all columns of current Model.
returns attributes slice
To install HTTP::Balancer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Balancer
CPAN shell
perl -MCPAN -e shell install HTTP::Balancer
For more information on module installation, please visit the detailed CPAN module installation guide.