NAME
Siebel::Srvrmgr::Daemon::Offline - subclass that reads srvrmgr output from a file
SYNOPSIS
use Siebel::Srvrmgr::Daemon::Offline;
my $daemon = Siebel::Srvrmgr::Daemon::Offline->new(
{
output_file => File::Spec->catfile('some', 'location', 'to', 'srvrmgr', 'output', 'file'),
field_delimiter => $field_delimiter;
}
);
$daemon->run();
DESCRIPTION
This is a subclass of Siebel::Srvrmgr::Daemon used to execute the srvrmgr
program in batch mode.
This class also uses the Siebel::Srvrmgr::Daemon::Cleanup role.
ATTRIBUTES
output_file
A string representing the full pathname to the file that contains all output from srvrmgr program to be parsed.
Required during object creation, this is a read-write attribute.
field_delimiter
An optional, read-write parameter during object creation.
If the file defined by output_file
has fields separated by a delimiter, you must set this attribute or output parsing will fail.
If setup, expects a single character.
run
This method completely overrides the parent's Siebel::Srvrmgr::Daemon method.
It will then parse the file defined in the output_file
attribute, executing any action defined during object creation.
SEE ALSO
AUTHOR
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
This file is part of Siebel Monitoring Tools.
Siebel Monitoring Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Siebel Monitoring Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Siebel Monitoring Tools. If not, see http://www.gnu.org/licenses/.