Backup::Omni::Session::Messages - Returns the messages of a given session
use Backup::Omni::Session::Messages; my $messages = Backup::Omni::Session::Messages->new( -session => '2013/01/28-1' ); while (my $message = $messaages->next) { printf("%s\n", $message); }
This module will return the messages for a session id. It runs the omnidb command with the appropiate options. If any errors are encounterd, an exception is thrown.
This method will initialze the object. It takes one mandatory parameter and one optional parameter.
The session id of the desired session.
Optional, returns the type of message. This can be one of the following:
warning minor major critical
The default is to return all of them.
This will return all the messages as an array.
Returns the first message.
Returns the next message.
Returns the prvious message.
Returns the last message.
Backup::Omni::Base Backup::Omni::Class Backup::Omni::Utils Backup::Omni::Constants Backup::Omni::Exception Backup::Omni::Restore::Filesystem::Single Backup::Omni::Session::Filesystem Backup::Omni::Session::Monitor Backup::Omni::Session::Results
Kevin L. Esteb, <kesteb@wsipc.org>
Copyright (C) 2013 by WSIPC
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Backup::Omni, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Backup::Omni
CPAN shell
perl -MCPAN -e shell install Backup::Omni
For more information on module installation, please visit the detailed CPAN module installation guide.