View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Alceu Rodrigues de Freitas Junior > Siebel-Srvrmgr > Siebel::Srvrmgr::Daemon::Command



Annotate this POD


View/Report Bugs
Module Version: 0.29   Source  


Siebel::Srvrmgr::Daemon::Command - daemon command class


        my $action = Siebel::Srvrmgr::Daemon::Command->new(
            command => 'list comps',
            action  => 'Siebel::Srvrmgr::Daemon::Action', 
                        params => ['parameter1', 'parameter2']


This class represents a single command that will be executed by a Siebel::Srvrmgr::Daemon instance.

A command in this context is made of a srvrmgr command, an action to be executed after the commands output is received (the name of a subclass of Siebel::Srvrmgr::Daemon::Action) and an optional parameter in the form of an array reference for the action class being used.


All attributes are read-only and cannot be modified after a class instance is created.


The command attribute holds a string that will be submitted to the srvrmgr program. Beware that any string is acceptable but any correct output expected depends on passing valid commands to the srvrmgr prompt. This attribute is required.


The action parameter expects a string with the name of a subclass of Siebel::Srvrmgr::Daemon::Action class. If one is used, then only the name of the subclass can be used (for example, 'Foobar' will produce an instance of a 'Siebel::Srvrmgr::Daemon::Action' subclass, if it exists). If another class is used, then the complete name of the class must be used.

Beware that the class passed as parameter must be able to deal with the srvrmgr output and do something with it.

This attribute is obligatory.


The params parameter expects an array reference with any arbitrary number of parameters to the used by the subclass of Siebel::Srvrmgr::Daemon::Action given as value for the action parameter.

Since this parameter is optional, if some value is passed by a subclass that does not expects a parameter, nothing will be processed.


All methods available is for retrieving the parameters values by using the methodology proposed by MooseX::FollowPBP. Use "get_<attribute>" to retrieve the desired value.



Alceu Rodrigues de Freitas Junior, <>.


This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, <>.

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

syntax highlighting: