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

NAME

Siebel::Srvrmgr::ListParser::Output::ListServers::Server - class that represents a Siebel Server return by a "list servers" command

SYNOPSIS

    use Siebel::Srvrmgr::ListParser::Output::ListServers::Server;
    # retrieved the hash reference from a "list servers" command output
        my $server = Siebel::Srvrmgr::ListParser::Output::ListServers::Server->new(
                name           => $ref->{SBLSRVR_NAME},
                group          => $ref->{SBLSRVR_GROUP_NAME},
                host           => $ref->{HOST_NAME},
                install_dir    => $ref->{INSTALL_DIR},
                disp_state     => $ref->{SV_DISP_STATE},
                state          => $ref->{SBLSRVR_STATE},
                start_datetime => $ref->{START_TIME},
                end_datetime   => $ref->{END_TIME},
                status         => $ref->{SBLSRVR_STATUS}, 
                pid            => $ref->{SBLMGR_PID}
    );

    ($server->is_running) ? print $server->name . 'is still running' : $server->name ' was running for a period of ' . $server->duration;

DESCRIPTION

This class is mean to be created by a Siebel::Srvrmgr::ListParser::Output::Tabular::ListServers object.

It represents a Siebel Server as returned by the list servers command from srvrmgr program.

ATTRIBUTES

All attributes of the Moose Role Siebel::Srvrmgr::ListParser::Output::Duration are available.

name

A string representing the Siebel Server name (actually a "NotNullStr" type defined at Siebel::Srvrmgr::Types).

This attribute is read-only and required.

group

A string representingn the Siebel server Group name

This attribute is read-only.

host

A string representing the host name of server machine.

This attribute is read-only and required.

install_dir

A string representing the Server install directory name

This attribute is read-only.

pid

An integer of O/S process/thread ID of Siebel Server Manager.

This attribute is read-only.

It will return undef if the Siebel Server is not running anymore.

disp_state

A string representing the server state (started, stopped, etc.)

This attribute is read-only and required.

state

A string representing the server state internal (started, stopped, etc.)

This attribute is read-only and required.

status

A string representing the server status

This attribute is read-only and required.

id

A integer in the whole Siebel Enterprise that univocally describes a Siebel Server.

This attribute is read-only and required.

METHODS

All methods of the Moose Role Siebel::Srvrmgr::ListParser::Output::Duration are available.

BUILD

Invokes automatically the Siebel::Srvrmgr::ListParser::Output::Duration fix_endtime method during object creation.

SEE ALSO

AUTHOR

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 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/.