RPC/Serialized/Handler/YATG/Store.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
invoke
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package RPC::Serialized::Handler::YATG::Store;
2 {
3 $RPC::Serialized::Handler::YATG::Store::VERSION = '5.140510';
4 }
5  
6 use strict;
7 use warnings FATAL => 'all';
8  
9 use base 'RPC::Serialized::Handler';
10 use YATG::Store::Disk;
11  
12 sub invoke {
13 my $self = shift;
14 return YATG::Store::Disk::store(@_);
15 }
16  
17 1;
18  
19 # ABSTRACT: RPC handler for YATG::Store::Disk
20  
21  
22 __END__
23 =pod
24  
25 =head1 NAME
26  
27 RPC::Serialized::Handler::YATG::Store - RPC handler for YATG::Store::Disk
28  
29 =head1 VERSION
30  
31 version 5.140510
32  
33 =head1 DESCRIPTION
34  
35 This module implements an L<RPC::Serialized> handler for L<YATG::Store::Disk>.
36 There is no special configuration, and all received parameters are passed on
37 to C<YATG::Store::Disk::store()> verbatim.
38  
39 =head1 REQUIREMENTS
40  
41 Install the following additional modules to use this plugin:
42  
43 =over 4
44  
45 =item *
46  
47 L<RPC::Serialized>
48  
49 =item *
50  
51 L<Tile::File::FixedRecLen>
52  
53 =item *
54  
55 L<integer>
56  
57 =item *
58  
59 L<Time::Local>
60  
61 =item *
62  
63 L<Fcntl>
64  
65 =back
66  
67 =head1 INSTALLATION
68  
69 You'll need to run an RPC::Serialized server, of course, and configure it to
70 serve this handler. There are files in the C<examples/> folder of this
71 distribution to help with that, e.g. C<rpc-serialized.server.yml>:
72  
73 ---
74 # configuration for rpc-serialized server with YATG handlers
75 rpc_serialized:
76 handlers:
77 yatg_store: "RPC::Serialized::Handler::YATG::Store"
78 yatg_retrieve: "RPC::Serialized::Handler::YATG::Retrieve"
79 net_server:
80 port: 1558
81 user: daemon
82 group: daemon
83  
84 You should head over to the RPC::Serialized documentation to learn how to set
85 that up. We use a pre-forking L<Net::Server> based implementation to receive
86 port traffic data and store to disk, then serve it back out to CGI on a web
87 server.
88  
89 =head1 SEE ALSO
90  
91 =over 4
92  
93 =item L<RPC::Serialized>
94  
95 =back
96  
97 =head1 AUTHOR
98  
99 Oliver Gorwits <oliver@cpan.org>
100  
101 =head1 COPYRIGHT AND LICENSE
102  
103 This software is copyright (c) 2014 by University of Oxford.
104  
105 This is free software; you can redistribute it and/or modify it under
106 the same terms as the Perl 5 programming language system itself.
107  
108 =cut
109