Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.658.169 Times

Sub::Slice::Manual 1.048

  Date Added: May 18, 2010  |  Visits: 875

Sub::Slice::Manual

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 downloads)



Sub::Slice::Manual is a Perl module with user guide for Sub::Slice. USING Sub::Slice Sub::Slice is a way of breaking down a long-running process and maintaining state across a stateless protocol. This allows the client to draw a progress bar or abort the process part-way through. The mechanism used by Sub::Slice is similar to the session management used on many web user authentication systems. However rather than simply passing an ID back as a token as these systems do, in Sub::Slice a data structure with richer information is passed to the client, allowing the client to make some intelligent decisions rather than blindly maintain state. Use of Sub::Slice is best explained with a minimal example. Assume that there is a remoting protocol between the client and server such as XML/HTTP. For the sake of brevity, assume that methods called in package Server:: on the client are magically remoted to the server. The server does two things. The first is to issue a token for the client to use: #Server sub create_token { my $job = new Sub::Slice(); return $job->token; } The second is to provide the routine into which the token is passed for each iteration: sub do_work { my $token = shift; my $job = new Sub::Slice(token => $token); at_start $job sub { my $files = files_to_process(); #Store some data defining the work to do $job->store("files", $files); }; at_stage $job "each_iteration" sub { #Get some work my $files = $job->fetch("files"); my $file = shift @$files; my $was_ok = process_file($file); #Record we did the work $job->store("files", $files); #Check if theres any more work left to do $job->done() unless(@$files); }; } The client somehow gets a token back from the server. It then passes this back to the server for each iteration. It can inspect the token to check if there is any more work left. #Client my $token = Server::create_token(); for(1 .. MAX_ITERATIONS) { Server::do_work($token); last if $token->{done}; }.

Requirements: No special requirements
Platforms: Linux
Keyword: Client Files Libraries Perl Module Programming Server Subslicemanual Token User User Guide Work
Users rating: 0/10

License: Freeware Size: 27.65 KB
USER REVIEWS
More Reviews or Write Review


SUB::SLICE::MANUAL RELATED
Libraries  -  Mon::Client 0.11
Mon::Client is a Perl module with methods for interaction with Mon client. SYNOPSIS use Mon::Client; Mon::Client is used to interact with "mon" clients. It supports a protocol-independent API for retrieving the status of the mon server, and...
23.55 KB  
Libraries  -  Bundle::MusicBrainz::Client 0.01
Bundle::MusicBrainz::Client is a Perl module with a bundle to install MusicBrainz::Client and required modules. SYNOPSIS perl -MCPAN -e install Bundle::MusicBrainz::Client CONTENTS MusicBrainz::Client - for to get to know thyself...
2.05 KB  
Libraries  -  File::Save::Home 0.08
File::Save::Home is a Perl module to place file safely under user home directory. SYNOPSIS use File::Save::Home qw( get_home_directory get_subhome_directory_status make_subhome_directory restore_subhome_directory_status...
18.43 KB  
Libraries  -  Samba::LDAP::User 0.03
Samba::LDAP::User is a Perl module to manipulate a Samba LDAP User. SYNOPSIS use Carp; use Samba::LDAP::User; # create Template object my $user = Samba::LDAP::User->new() or croak "Cant create objectn"; Various methods to manipulate a...
81.92 KB  
Libraries  -  NetPacket::UDP 0.04
NetPacket::UDP is a Perl module to assemble and disassemble UDP (User Datagram Protocol) packets. SYNOPSIS use NetPacket::UDP; $udp_obj = NetPacket::UDP->decode($raw_pkt); $udp_pkt = NetPacket::UDP->encode($ip_obj); $udp_data =...
11.26 KB  
Libraries  -  Net::GPSD 0.35
Net::GPSD is a Perl module that provides an object client interface to the gpsd server daemon. SYNOPSIS use Net::GPSD; $obj=Net::GPSD->new; my $point=$obj->get; print $point->latlon. "n"; or use Net::GPSD; $obj=Net::GPSD->new;...
15.36 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Video::Info::ASF 0.993
Video::Info::ASF is a Perl module for ASF files for attributes like: -video codec -audio codec -frame height -frame width -frame count and more! SYNOPSIS use Video::Info::ASF; my $video; $video =...
634.88 KB  
Libraries  -  Similars 1.2
Similars is a Perl module that can locate similar files. SYNOPSIS [perl -S] similars.pl [--level=1] [dirs...] Similar-sized and similar-named files are picked as suspicious candidates of duplicated files. What descirbes it better than a...
10.24 KB  
Libraries  -  Devel::Tinderbox::Reporter 0.10
Devel::Tinderbox::Reporter is a Perl module with client to send reports to Tinderbox. SYNOPSIS use Devel::Tinderbox::Reporter; my $report = Devel::Tinderbox::Reporter->new; $report->from(your@mail.address.com);...
3.07 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB