Net::Peep::Conf

Net::Peep::Conf is a Perl extension for providing an object representation of configuration information for Peep.
Download

Net::Peep::Conf Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Collin Starkweather
  • Publisher web site:
  • http://search.cpan.org/~starky/

Net::Peep::Conf Tags


Net::Peep::Conf Description

Net::Peep::Conf is a Perl extension for providing an object representation of configuration information for Peep. Net::Peep::Conf is a Perl extension for providing an object representation of configuration information for Peep: The Network Auralizer.SYNOPSIS use Net::Peep::Conf; my $conf = new Net::Peep::Conf; $conf->setBroadcast($class0,$value0); $conf->setBroadcast($class1,$value1); $conf->getBroadcastList();Net::Peep::Conf provides an object interface for Peep configuration information, typically extracted from a Peep configuration file (e.g., /etc/peep.conf) by the Net::Peep::Parser module.PUBLIC METHODS setApp($appname) - A unique identifier associated with a client configuration. Typically the name of the application using the configuration information; e.g., logparser. getApp() - Returns the identifier set with setApp. getPort() - Returns the port set with setPort. setPort($port) - Sets a port number. Typically the client broadcast port. getBroadcastList() - Returns a list of all broadcast names associated with all classes. getBroadcast($class) - Gets the broadcast string for the class $class. addBroadcast($class,$value) - Adds the broadcast string (consisting of IP/domain and port) named $name for the class $class. getClassList() - Returns a list of all class names that have associated server lists. getClass($class) - Returns a list of servers associated with the class $class. setClass($class,$arrayref) - Associates the class $class with the list of servers given in $arrayref. getEventList() - Returns a list of all event names. getEvent($event) - Returns the event information for the event with name $event. setEvent($event,$hashref) - Associates the event $event with the information contained in $hashref. getStateList() - Returns a list of all state names. getState($state) - Returns the state information associated with the state $state. setState($event,$hashref) - Associates the state $state with the information contained in $hashref. setConfigurationText($client,$text) - Sets the configuration text to $text for client $client. For reference and debugging only. The text is not actually used internally for any purpose. getNotificationText($client) - Returns the configuration text for client $client. setNotificationText($client,$text) - Sets the configuration text to $text for client $client. For reference and debugging only. The text is not actually used internally for any purpose. getConfigurationText($client) - Returns the configuration text for client $client. setClientEvent($name,$arrayref) - Sets the events associated with the client $name. getClientEvents($name) - Returns the events associated with the client $name. getClientEventList() - Returns all events associated with all clients. checkClientEvent() - The method name is a question: Based on command-line or configuration file settings, should this client event be considered active in the current client? For example, should the logparser check the regular expression for this event against log files? setVersion() - Sets the version number. getVersion() - Return the version number taken from the Peep configuration file (e.g., peep.conf) if it exists. Confesses if the version has not been set yet. See also versionExists(). versionExists() - Returns 1 if a version has been set with the setVersion() method, 0 otherwise. setSoundPath() - Sets the path to the Peep sound respository (typically /usr/local/share/peep/sounds). getSoundPath() - Returns the sound path. Confesses if the sound path has not been set yet. See also soundPathExists(). soundPathExists() - Returns 1 if the sound path has been set with the setSoundPath() method, 0 otherwise. Requirements: · Perl


Net::Peep::Conf Related Software