Supervisor::Base - The base environment for the Supervisor


Supervisor documentation Contained in the Supervisor distribution.

Index


Code Index:

NAME

Top

Supervisor::Base - The base environment for the Supervisor

SYNOPSIS

Top

 use Supervisor::Class
   base => 'Supervisor::Base'
 ;

DESCRIPTION

Top

This is the base module for the Supervisor environmnet. It provides some global error messages and one method to retrieve config values. It also inherits all the properties of Badger::Base.

ACCESSORS

Top

config

This method is used to return items from the interal config cache.

SEE ALSO

Top

 Badger::Base

 Supervisor
 Supervisor::Base
 Supervisor::Class
 Supervisor::Constants
 Supervisor::Controller
 Supervisor::Log
 Supervisor::Process
 Supervisor::ProcessFactory
 Supervisor::Session
 Supervisor::Utils
 Supervisor::RPC::Server
 Supervisor::RPC::Client

AUTHOR

Top

Kevin L. Esteb, <kesteb@wsipc.org>

COPYRIGHT AND LICENSE

Top


Supervisor documentation Contained in the Supervisor distribution.

package Supervisor::Base;

our $VERSION = '0.06';

use Supervisor::Class
  base     => 'Badger::Base',
  version  => $VERSION,
  messages => {
      evenparams => "%s requires an even number of paramters\n",
      noalias    => "can not set session alias %s\n",
      badini     => "can not load %s\n",
  }
;

# ----------------------------------------------------------------------
# Public Methods
# ----------------------------------------------------------------------

sub config {
    my ($self, $p) = @_;

    return $self->{config}->{$p};
    
}

1;

__END__