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 9     9   62 use strict;
  9         18  
  9         227  
4 9     9   36 use warnings;
  9         18  
  9         309  
5              
6 9     9   53 use parent 'PLS::Server::Request';
  9         19  
  9         36  
7              
8 9     9   446 use PLS::Server::State;
  9         11  
  9         275  
9 9     9   3135 use PLS::Server::Response::Shutdown;
  9         35  
  9         606  
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 4 my ($self) = @_;
25              
26 1         6 $PLS::Server::State::SHUTDOWN = 1;
27 1         19 return PLS::Server::Response::Shutdown->new($self);
28             } ## end sub service
29              
30             1;