The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Backup::Omni::Session::Messages - Returns the messages of a given session

SYNOPSIS

 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);

 }

DESCRIPTION

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.

METHODS

new

This method will initialze the object. It takes one mandatory parameter and one optional parameter.

-session

The session id of the desired session.

-report

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.

all

This will return all the messages as an array.

first

Returns the first message.

next

Returns the next message.

prev

Returns the prvious message.

last

Returns the last message.

SEE ALSO

 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

AUTHOR

Kevin L. Esteb, <kesteb@wsipc.org>

COPYRIGHT AND LICENSE

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.