NAME

Helios::Panoptes::Base - base class for Helios::Panoptes applications

DESCRIPTION

Helios::Panoptes::Base serves as the base class for the different web applications that make up Helios::Panoptes.

CGI::APPLICATION METHODS

setup()

teardown()

The only thing that currently happens in teardown() is the database is disconnected.

COMMON METHODS

These methods

getConfig()

getFuncmapByFuncid()

getFuncmapByFuncname()

getLogLevelList()

getLogLevelMap()

initDriver()

parseEpochDate($epoch_seconds)

Given a time in epoch seconds, parseEpochDate() returns a hashref containing the component date parts of the date on the Greogorian calendar:

yyyy  four-digit year
mm    two-digit month
mon   3-letter month
month Month full name
day   3-letter day of week
ddd   3-digit day of year
dd    two-digit day of month
hh    twenty-four hour 
mi    two-digit minutes
ss    two-digit seconds

parseConfig()

parseAllConfigParams([$group_by_field])

Returns a hashref data structure containing all of the config params for all of the services in the Helios collective database. The $group_by_field can be either 'service' or 'host' ('service' is the default).

modParam($action, $worker_class, $host, $param, [$value])

Modify Helios config parameters. Used by ctrl_panel() and collective() displays.

Valid values for $action:

add

Add the given parameter for the given class and host

delete

Delete the given parameter for the given class and host

modify

Modify the given parameter for the given class and host with a new value. Effectively the same as a delete followed by an add.

Worker class is the name of the class.

Host is the name of the host. Use '*' to make the parameter global to all instances of the worker class.

Returns a true value if successful and throws an Error::Simple exception otherwise.

SEE ALSO

Helios::Service, helios.pl, <CGI::Application>

AUTHOR

Andrew Johnson, <lajandy at cpan dotorg>

COPYRIGHT AND LICENSE

Copyright (C) 2012 by Logical Helion, LLC.

Portions of this library, where noted, are Copyright (C) 2008-9 by CEB Toolbox, Inc.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.

WARRANTY

This software comes with no warranty of any kind.