M3::ServerView::RootEntry - Records returned by 'home' view.


M3-ServerView documentation Contained in the M3-ServerView distribution.

Index


Code Index:

NAME

Top

M3::ServerView::RootEntry - Records returned by 'home' view.

INTERFACE

Top

ATTRIBUTES

The following attributes are available as accessors and are also searchable. Type of value within parenthesis.

no (text)
type (text)
pid (numerical)
started (timestamp)
jobs (numerical)
threads (numerical)
cpu (text)
heap (numerical)
status (text)

INSTANCE METHODS

details ( )

Retrieves the details for the entry and returns a view corresponding to the kind of entry. This may for example be M3::ServerView::ServerView-instance if the type is "Server:*".


M3-ServerView documentation Contained in the M3-ServerView distribution.

package M3::ServerView::RootEntry;

use strict;
use warnings;

use base qw(M3::ServerView::Entry);

# Build accessors
use Object::Tiny qw(
    no
    type
    pid
    started
    jobs
    threads
    cpu
    heap
    status
);

sub details {
    my ($self) = @_;
    return unless $self->{_details};
    my ($conn, $path, $query) = @{$self->{_details}};
    return $conn->_load_view($path, $query);
}

1;
__END__