JMX::Jmx4Perl::Config

Configuration file support for Jmx4Perl
Download

JMX::Jmx4Perl::Config Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Roland Hu?
  • Publisher web site:
  • http://search.cpan.org/~roland/

JMX::Jmx4Perl::Config Tags


JMX::Jmx4Perl::Config Description

Configuration file support for Jmx4Perl JMX::Jmx4Perl::Config is a Perl module with configuration file support for Jmx4Perl.SYNOPSISConfiguration file format # ================================================================ # Sample configuration for jmx4perl < Server > # Name how this config could accessed Name = localhost # Options for JMX::Jmx4Perl->new, case is irrelevant Url = http://localhost:8080/j4p User = roland Password = test Product = JBoss # HTTP proxy for accessing the agent < Proxy > Url = http://proxy:8001 User = proxyuser Password = ppaasswwdd < /Proxy > # Target for running j4p in proxy mode < Target > Url service:jmx:iiop://.... User weblogic Password weblogic < /Target > < /Server >Usage: my $config = new JMX::Jmx4Perl::Config($config_file);METHODS$cfg = JMX::Jmx4Perl::Config->new($file_or_hash) Create a new configuration object with the given file name. If no file name is given the configuration ~/.j4p is tried. If the file does not exist, server_config_exists will alway return false and get_server_config will always return undef If a hash is given as argument, this hash is used to extract the server information.$exists = $config->server_config_exists($name) Check whether a configuration entry for the server with name $name exist.$server_config = $config->get_server_config($name) Get the configuration for the given server or undef if no such configuration exist.$servers = $config->get_servers Get an arrayref to all configured servers or an empty arrayref. Requirements: · Perl


JMX::Jmx4Perl::Config Related Software