SADI Framework > SADI-Simple-0.008 > SADI::Simple::AsyncService

Download:
SADI-Simple-0.008.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.008   Source   Latest Release: SADI-Simple-0.15

NAME ^

SADI::Simple::AsyncService - a superclass for asynchronous SADI services

SYNOPSIS ^

 use base qw( SADI::Simple::AsyncService )

DESCRIPTION ^

A common superclass for all SADI::Simple services.

SUBROUTINES ^

process_it

A job-level processing: This is the main method to be overriden by a service provider!. Here all the business logic belongs to.

This method is called once for each service invocation request.

Note that here, in SADI::Simple::AsyncService, this method does nothing. Which means it leaves the output job empty, as it was given here. Consequence is that if you do not override this method in a sub-class, the client will get back an empty request. Which may be good just for testing but not really what a client expects (I guess).

You are free to throw an exception (TBD: example here). However, if you do so the complete processing of the whole client request is considered failed. After such exception the client will not get any data back (only an error message).

AUTHORS, COPYRIGHT, DISCLAIMER ^

 Ben Vandervalk (ben.vvalk [at] gmail [dot] com)
 Edward Kawas  (edward.kawas [at] gmail [dot] com)

Copyright (c) 2009 Edward Kawas. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

This software is provided "as is" without warranty of any kind.

syntax highlighting: