CatalystX::Usul::Controller::Admin::Processes - Process table manipulation


CatalystX-Usul documentation Contained in the CatalystX-Usul distribution.

Index


Code Index:

Name

Top

CatalystX::Usul::Controller::Admin::Processes - Process table manipulation

Version

Top

0.3.$Revision: 576 $

Synopsis

Top

   package MyApp::Controller::Admin;

   use base qw(CatalystX::Usul::Controller::Admin);

   __PACKAGE__->build_subcontrollers;

Description

Top

Displays the process table and send signals to selected processes

Subroutines/Methods

Top

proc_table

Display the process table. Processes can be filtered by user, by a pattern match, or by file system. Signals can be optionally propagated to the processes children

proc_table_signal

Send the selected processes the specified signal, one of; SIGTERM, SIGKILL, or SIGABORT

Diagnostics

Top

None

Configuration and Environment

Top

None

Dependencies

Top

CatalystX::Usul::Controller

Incompatibilities

Top

There are no known incompatibilities in this module

Bugs and Limitations

Top

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Top

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Top


CatalystX-Usul documentation Contained in the CatalystX-Usul distribution.

# @(#)$Id: Processes.pm 576 2009-06-09 23:23:46Z pjf $

package CatalystX::Usul::Controller::Admin::Processes;

use strict;
use warnings;
use version; our $VERSION = qv( sprintf '0.3.%d', q$Rev: 576 $ =~ /\d+/gmx );
use parent qw(CatalystX::Usul::Controller);

__PACKAGE__->config( namespace => q(admin) );

sub proc_table : Chained(common) Args HasActions {
   my ($self, $c, $ptype, $user, $fsystem, $signals) = @_;

   $ptype   = $self->set_key( $c, q(ptype),   $ptype   );
   $user    = $self->set_key( $c, q(user),    $user    );
   $fsystem = $self->set_key( $c, q(fsystem), $fsystem );
   $signals = $self->set_key( $c, q(signals), $signals );
   $c->model( q(Process) )->form( $ptype, $user, $fsystem, $signals );
   return;
}

sub proc_table_signal : ActionFor(proc_table.abort)
                        ActionFor(proc_table.kill)
                        ActionFor(proc_table.terminate) {
   my ($self, $c) = @_; $c->model( q(Process) )->signal_process; return 1;
}

1;

__END__

# Local Variables:
# mode: perl
# tab-width: 3
# End: