NAME

Siebel::Srvrmgr::Daemon::Action::ListComps - subclass of Siebel::Srvrmgr::Daemon::Action to deal with list comp output

SYNOPSIS

use Siebel::Srvrmgr::Daemon::Action::ListComps;

my $action = Siebel::Srvrmgr::Daemon::Action::ListComps->new({  parser => Siebel::Srvrmgr::ListParser->new(), 
																params => [$myDumpFile]});

$action->do(\@output);

DESCRIPTION

This subclass of Siebel::Srvrmgr::Daemon::Action will try to find a Siebel::Srvrmgr::ListParser::Output::ListComp object in the given array reference given as parameter to the do method and stores the parsed data from this object in a serialized file.

METHODS

do

This methods expects an array reference as parameter containing a given command output.

It will try to identify the first ocurrence of a Siebel::Srvrmgr::ListParser::Output::ListComp: once one is found, it will call the get_servers method from this class and then iterate over the servers (objects from the class Siebel::Srvrmgr::ListParser::Output::ListComp::Server) calling their respective store method to serialize themselves into the OS filesystem.

The name of the filename used for data serialization will be the value of dump_file append with the character '_' and the server name.

This method will return 1 if this operation was executed sucessfuly, 0 otherwise.

SEE ALSO