Manual Pages for UNIX Darwin command on man Apache2::MPM
MyWebUniversity

Manual Pages for UNIX Darwin command on man Apache2::MPM

apachemodpaepralc-h1e01m.o1d~2Up:se:ermrlo-dC1o0pn1et.rr1li~-b22u:.t:0em.do2d:P:epdreolrclsD-:o2:c.au0pm.ie2:n::t:Aadptoaiccoshn:e:2a:p:iM:P:MA(p3a)che2::MPM(3)

NAME

Apache2::MPM - Perl API for accessing Apache MPM information

SSyynnooppssiiss

use 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 MPM

my $query = Apache2::MPM->query($const);

obj: $class ( "Apache2::MPM class" )

the class name

arg1: $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 name

ret: $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 used

my $mpm = Apache2::MPM->show();

obj: $class ( "Apache2::MPM class" )

the class name

ret: $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)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™