NAME
Apache2::MPM - Perl API for accessing Apache MPM information
SSyynnooppssiissuse Apache2::MPM ();
# check whether Apache MPM is threaded
if (Apache2::MPM->isthreaded) { dosomething() }
# which mpm is used
my $mpm = lc Apache2::MPM->show;
# query mpm properties
use Apache2::Const -compile => qw(:mpmq);
if (Apache2::MPM->query(Apache2::Const::MPMQSTATIC)) { ... }
DDeessccrriippttiioonn"Apache2::MPM" provides the Perl API for accessing Apache MPM
information. AAPPII"Apache2::MPM" provides the following functions and/or methods:
""qquueerryy"" Query various attributes of the MPMmy $query = Apache2::MPM->query($const);
obj: $class ( "Apache2::MPM class" )
the class namearg1: $const ( "Apache2::Const :mpmq group constant" )
The MPM attribute to query.ret: $query ( boolean )
the result of the query since: 2.0.00 For example to test whether the mpm is static:use Apache2::Const -compile => qw(MPMQSTATIC);
if (Apache2::MPM->query(Apache2::Const::MPMQSTATIC)) { ... }
""iisstthhrreeaaddeedd"" Check whether the running Apache MPM is threaded.my $isthreaded = Apache2::MPM->isthreaded;
obj: $class ( "Apache2::MPM class" )
the class nameret: $isthreaded ( boolean )
threaded or not since: 2.0.00 Note that this functionality is just a shortcut for:use Apache2::Const -compile => qw(MPMQISTHREADED);
my $isthreaded = Apache2::MPM->query(Apache2::Const::MPMQISTHREADED);
""sshhooww"" What mpm is usedmy $mpm = Apache2::MPM->show();
obj: $class ( "Apache2::MPM class" )
the class nameret: $mpm ( string )
the name of the MPM. e.g., "Prefork". since: 2.0.00 SSeeee AAllssoo modperl 2.0 documentation. CCooppyyrriigghhtt modperl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. AAuutthhoorrss The modperl development team and numerous contributors.perl v5.8.8apachemodperl-101.1~22:0:0m5o-d10p-e2r0l-2.0.2::docs::api::Apache2::MPM(3)