home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-perl-addon-1.4.9-installer.exe / Process.pm < prev    next >
Encoding:
Perl POD Document  |  2004-09-23  |  2.7 KB  |  181 lines

  1. # /*
  2. #  * *********** WARNING **************
  3. #  * This file generated by ModPerl::WrapXS/0.01
  4. #  * Any changes made here will be lost
  5. #  * ***********************************
  6. #  * 01: lib/ModPerl/Code.pm:701
  7. #  * 02: O:\147xampp\sources\mod_perl-1.99_16\blib\lib/ModPerl/WrapXS.pm:584
  8. #  * 03: O:\147xampp\sources\mod_perl-1.99_16\blib\lib/ModPerl/WrapXS.pm:1100
  9. #  * 04: Makefile.PL:335
  10. #  * 05: Makefile.PL:283
  11. #  * 06: Makefile.PL:51
  12. #  */
  13.  
  14.  
  15. package Apache::Process;
  16.  
  17. use strict;
  18. use warnings FATAL => 'all';
  19.  
  20.  
  21.  
  22. use Apache::XSLoader ();
  23. our $VERSION = '0.01';
  24. Apache::XSLoader::load __PACKAGE__;
  25.  
  26.  
  27.  
  28. 1;
  29. __END__
  30.  
  31. =head1 NAME
  32.  
  33. Apache::Process - Perl API for Apache process record
  34.  
  35.  
  36.  
  37.  
  38. =head1 Synopsis
  39.  
  40.   use Apache::Process ();
  41.   use Apache::ServerRec ();
  42.   my $proc = $s->process;
  43.   
  44.   # global pool cleared on exit
  45.   my $global_pool = $proc->pool;
  46.   
  47.   # configuration pool cleared on restart
  48.   my $pconf = $proc->pconf;
  49.   
  50.   # short program name (e.g. httpd)
  51.   my $proc_name = $proc->short_name;
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. =head1 Description
  59.  
  60. C<Apache::Process> provides the API for the Apache process object,
  61. which you can retrieve with
  62. C<L<$s-E<gt>process|docs::2.0::api::Apache::ServerRec/C_process_>>:
  63.  
  64.   use Apache::ServerRec ();
  65.   $proc = $s->process;
  66.  
  67.  
  68.  
  69.  
  70. =head1 API
  71.  
  72. C<Apache::Process> provides the following functions and/or methods:
  73.  
  74.  
  75.  
  76.  
  77. =head2 C<pconf>
  78.  
  79. Get configuration pool object.
  80.  
  81.   $p = $proc->pconf();
  82.  
  83. =over 4
  84.  
  85. =item obj: C<$proc>
  86. ( C<L<Apache::Process object|docs::2.0::api::Apache::Process>> )
  87.  
  88. =item ret: C<$p>
  89. ( C<L<APR::Pool object|docs::2.0::api::APR::Pool>> )
  90.  
  91. =item since: 1.99_15
  92.  
  93. =back
  94.  
  95. This pool object gets cleared on server restart.
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103. =head2 C<pool>
  104.  
  105. Get the global pool object.
  106.  
  107.   $p = $proc->pool();
  108.  
  109. =over 4
  110.  
  111. =item obj: C<$proc>
  112. ( C<L<Apache::Process object|docs::2.0::api::Apache::Process>> )
  113.  
  114. =item ret: C<$p>
  115. ( C<L<APR::Pool object|docs::2.0::api::APR::Pool>> )
  116.  
  117. =item since: 1.99_15
  118.  
  119. =back
  120.  
  121. This pool object gets cleared only on (normal) server exit
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. =head2 C<short_name>
  131.  
  132. The name of the program used to execute the program
  133.  
  134.   $short_name = $proc->short_name();
  135.  
  136. =over 4
  137.  
  138. =item obj: C<$proc>
  139. ( C<L<Apache::Process object|docs::2.0::api::Apache::Process>> )
  140.  
  141. =item ret: C<$short_name> (string)
  142.  
  143. e.g. C<httpd>
  144.  
  145. =item since: 1.99_15
  146.  
  147. =back
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157. =head1 See Also
  158.  
  159. L<mod_perl 2.0 documentation|docs::2.0::index>.
  160.  
  161.  
  162.  
  163.  
  164. =head1 Copyright
  165.  
  166. mod_perl 2.0 and its core modules are copyrighted under
  167. The Apache Software License, Version 2.0.
  168.  
  169.  
  170.  
  171.  
  172. =head1 Authors
  173.  
  174. L<The mod_perl development team and numerous
  175. contributors|about::contributors::people>.
  176.  
  177. =cut
  178.  
  179.