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

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

Serving Software Downloads in 956 Categories, Downloaded 50.244.369 Times

Sub::Slice::Manual 1.048

  Date Added: May 18, 2010  |  Visits: 1.274

Sub::Slice::Manual

Report Broken Link
Printer Friendly Version


Product Homepage
Download (98 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  -  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  -  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  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Libraries  -  IO::Prompt 0.99.4
IO::Prompt is a Perl module to interactively prompt for user input. SYNOPSIS use IO::Prompt; while( prompt "next: " ) { print "You said $_n"; } By default, this module exports a single function prompt. It prompts the user to enter some...
14.34 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  -  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  -  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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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