RPC::Serialized::Handler::YATG::Store - RPC handler for YATG::Store::Disk


YATG documentation Contained in the YATG distribution.

Index


Code Index:

NAME

Top

RPC::Serialized::Handler::YATG::Store - RPC handler for YATG::Store::Disk

DESCRIPTION

Top

This module implements an RPC::Serialized handler for YATG::Store::Disk. There is no special configuration, and all received parameters are passed on to YATG::Store::Disk::store() verbatim.

INSTALLATION

Top

You'll need to run an RPC::Serialized server, of course, and configure it to serve this handler. There are files in the examples/ folder of this distribution to help with that, e.g. rpc-serialized.server.yml:

 ---
 # configuration for rpc-serialized server with YATG handlers
 rpc_serialized:
     handlers:
         yatg_store:    "RPC::Serialized::Handler::YATG::Store"
         yatg_retrieve: "RPC::Serialized::Handler::YATG::Retrieve"
 net_server:
     port: 1558
     user: daemon
     group: daemon




You should head over to the RPC::Serialized documentation to learn how to set that up. We use a pre-forking Net::Server based implementation to receive port traffic data and store to disk, then serve it back out to CGI on a web server.

SEE ALSO

Top

RPC::Serialized

AUTHOR

Top

Oliver Gorwits <oliver.gorwits@oucs.ox.ac.uk>

COPYRIGHT & LICENSE

Top


YATG documentation Contained in the YATG distribution.

package RPC::Serialized::Handler::YATG::Store;

use strict;
use warnings FATAL => 'all';

use base 'RPC::Serialized::Handler';
use YATG::Store::Disk;

sub invoke {
    my $self = shift;
    return YATG::Store::Disk::store(@_);
}

1;

__END__