Changeset 46cd4240670ef645a4b78521eabbc2c10aae9891 in xas-supervisor


Ignore:
Timestamp:
12/04/15 13:24:52 (4 years ago)
Author:
Kevin L. Esteb <kevin@…>
Branches:
master
Children:
fdbba6d01c088f2248591d4df8b5792bc62525ab
Parents:
791e58164dd85cd9f9dcc7dcd0ea3f8337b61504
git-author:
Kevin L. Esteb <kevin@…> (12/04/15 13:24:52)
git-committer:
Kevin L. Esteb <kevin@…> (12/04/15 13:24:52)
Message:

basic functionality for the supervisor works

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/etc/xas-supervisor.ini

    r060cc7e635d3538a55eba919ca2accfc9fb60b52 r46cd4240670ef645a4b78521eabbc2c10aae9891  
    88 
    99[program: xas-spooler] 
    10 command = /usr/sbin/xas-spooler 
     10command = /usr/sbin/xas-spooler --log-type file 
    1111user = xas 
    1212group = xas 
  • trunk/lib/XAS/Supervisor/Controller.pm

    r791e58164dd85cd9f9dcc7dcd0ea3f8337b61504 r46cd4240670ef645a4b78521eabbc2c10aae9891  
    1 package XAS::Supervisor::Controller ; 
     1package XAS::Supervisor::Controller; 
    22 
    33our $VERSION = '0.01'; 
    44 
    55use POE; 
     6 
    67use XAS::Class 
    78  debug     => 0, 
     
    910  base      => 'XAS::Lib::Net::Server', 
    1011  mixin     => 'XAS::Lib::Mixins::JSON::Server', 
     12  utils     => ':validation', 
    1113  constants => ':process :jsonrpc HASHREF', 
    1214  vars => { 
     
    3133    # communications from RPC. 
    3234 
    33     $poe_kernel->state('stop_process',   '_stop_process',   $self); 
    34     $poe_kernel->state('stat_process',   '_stat_process',   $self); 
    35     $poe_kernel->state('start_process',  '_start_process',  $self); 
    36     $poe_kernel->state('pause_process',  '_pause_process',  $self); 
    37     $poe_kernel->state('resume_process', '_resume_process', $self); 
    38     $poe_kernel->state('check_status',   '_check_status',   $self); 
     35    $poe_kernel->state('kill_process',   $self, '_kill_process'); 
     36    $poe_kernel->state('stop_process',   $self, '_stop_process'); 
     37    $poe_kernel->state('stat_process',   $self, '_stat_process'); 
     38    $poe_kernel->state('start_process',  $self, '_start_process'); 
     39    $poe_kernel->state('pause_process',  $self, '_pause_process'); 
     40    $poe_kernel->state('resume_process', $self, '_resume_process'); 
     41    $poe_kernel->state('check_status',   $self, '_check_status'); 
    3942 
    4043    # walk the chain 
  • trunk/lib/XAS/Supervisor/Monitor.pm

    r791e58164dd85cd9f9dcc7dcd0ea3f8337b61504 r46cd4240670ef645a4b78521eabbc2c10aae9891  
    88  debug      => 0, 
    99  version    => $VERSION, 
    10   base       => 'XAS::Base', 
     10  base       => 'Badger::Prototype XAS::Base', 
    1111  mixin      => 'XAS::Lib::Mixins::Configs', 
    1212  utils      => 'trim :env :validation', 
Note: See TracChangeset for help on using the changeset viewer.