Lemonolap::Wrapperolap - Perl extension for Lemonolap framework


Lemonolap-Wrapperolap documentation  | view source Contained in the Lemonolap-Wrapperolap distribution.

Index


NAME

Top

Lemonolap::Wrapperolap - Perl extension for Lemonolap framework

SYNOPSIS

Top

use Lemonolap::Wrapperolap my $wrapper = Lemonolap::Wrapperolap->new (config => "myxml.xml" ); foreach ('format','filter') { $wrapper->set_phase($_); my $file = $wrapper->get_file_in; my $handler= $wrapper->get_handler; my $sortie =$wrapper->get_file_out; eval "use $handler;"; my $hook= $handler->new(); $hook->set_output($sortie); $hook->apply(infile =>$file, outfile =>$sortie, header =>'1' ) ; }

__END__



 or  easier : 




use Lemonolap::Wrapperolap; my $wrapper = Lemonolap::Wrapperolap->new (config => "myxml.xml", workflow => ['format','filter'] ); $wrapper->run (header =>1 );

__END__






  and myxml.xml is like this 

  <lemonolap>
	<format id="format1"
		file_in="extract.log"
		handler="Lemonolap::Log4lemon"
                file_out="phase1.log" 
	        />
	<filter id="filter1" 
		file_in="phase1.log"
	        file_out="phase2.log" 
	        handler="Lemonolap::Filter4lemon"
	       />	
  </lemonldap>	







DESCRIPTION

Top

This module is a logs wrapper . It reads lemonldap logs and applies somes mofications

Methods

Top

new->(config => /path_file_xml) ;

 Path of XML  file . This file MUST exits . 

set_phase ('name_of_phase') ;

 set phase , this operation MUST be done BEFORE all other methods (except new)   

get_file () ;

 return the file read from xml config   

get_handler ();

 return  a string with module name  

get_config;

 return a reference of hash config 

run (config => my_xml_config, workflow =>[phase,..] )

Process all phase scheduled in workflow

SEE ALSO

Top

Lemonldap http://lemonldap.sourceforge.net/

Lemonolap http://lemonolap.sourceforge.net/

Lemonolap::Log4lemon

Lemonolap::Filter4lemon

COPYRIGHT AND LICENSE

Top


Lemonolap-Wrapperolap documentation  | view source Contained in the Lemonolap-Wrapperolap distribution.