The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Siebel::Srvrmgr::Daemon::Action::Serializable - role for serializable subclasses of Siebel::Srvrmgr::Daemon::Action

DESCRIPTION

This class is a role, not a subclass of Siebel::Srvrmgr::Daemon::Action. It is intended to be used by subclasses that needs serialization to the filesystem.

ATTRIBUTES

dump_file

This attribute is a string used to indicate in which file the data from the class using this role should be serialized into the OS filesystem. The string can be a complete path or just the filename.

METHODS

get_dump_file

Returns the string stored in the attribute dump_file.

set_dump_file

Sets the attribute dump_file. Expects a string as parameter.

BUILD

Right after object creation this method will process the params attribute and retrieve the first index of the array reference to define the dump_file attribute using the method set_dump_file.

If the params attribute is an empty reference, the method wil raise an exception. If the value given is undefined or an empty string, an exception will be raised as well.

store

Serializes a arbitrary data reference to the file as returned by get_dump_file method. That serialization is done with Storable module nstore function.

Expects as parameters a data reference.

Returns any value returned by the nstore function.

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/>.