File Coverage

blib/lib/PLS/Server/Request/Shutdown.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 1 0.0
total 24 25 96.0


line stmt bran cond sub pod time code
1             package PLS::Server::Request::Shutdown;
2              
3 11     11   100 use strict;
  11         22  
  11         452  
4 11     11   64 use warnings;
  11         30  
  11         648  
5              
6 11     11   399 use parent 'PLS::Server::Request';
  11         23  
  11         75  
7              
8 11     11   1161 use PLS::Server::State;
  11         23  
  11         369  
9 11     11   6832 use PLS::Server::Response::Shutdown;
  11         59  
  11         1177  
10              
11             =head1 NAME
12              
13             PLS::Server::Request::Shutdown
14              
15             =head1 DESCRIPTION
16              
17             This is a notification message from the client to the server requesting
18             that the server shuts down.
19              
20             =cut
21              
22             sub service
23             {
24 1     1 0 9 my ($self) = @_;
25              
26 1         5 $PLS::Server::State::SHUTDOWN = 1;
27 1         15 return PLS::Server::Response::Shutdown->new($self);
28             } ## end sub service
29              
30             1;