Alexandre Masselot > Parallel-Mpich-MPD > Parallel::Mpich::MPD::Job

Download:
Parallel-Mpich-MPD-0.9.3.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Parallel::Mpich::MPD::Job - Mpich MPD job wrapper

SYNOPSIS ^

EXPORT ^

FUNCTIONS ^

METHOD ^

infos

Get information of this job. Information contains these values: my %info=$job->infos(); $info{jobid}; $info{jobalias}; $info{username}; $info{hosts}[0..N]{host}; $info{hosts}[0..N]{pid}; $info{hosts}[0..N]{sid}; $info{hosts}[0..N]{rank}; $info{hosts}[0..N]{cmd};

kill

Kill this job. See examples: Parallel::Mpich::MPD::findJob(alias => 'olivier1')->kill(); Parallel::Mpich::MPD::findJob(jobid => '1@linux02_32996')->kill();

signal

Send a sig to this job. It return false if not ok. examples: # SIGQUIT, SIGKILL, SIGSTOP, SIGCONT, SIGXCPU, SIGUSR1, SIGUSR2 Parallel::Mpich::MPD::findJob(alias => 'olivier1')->signal("SIGSTOP"); Parallel::Mpich::MPD::findJob(alias => 'olivier1')->signal("SIGCONT"); Parallel::Mpich::MPD::findJob(jobid => '1@linux02_32996')->kill();

  NOTE:
  You couLd check the state with the following ps command:
  ps -eo state,nice,user,comm
  ps state des:
  D    Uninterruptible sleep (usually IO)
  R    Running or runnable (on run queue)
  S    Interruptible sleep (waiting for an event to complete)
  T    Stopped, either by a job control signal or because it is being traced.
  W    paging (not valid since the 2.6.xx kernel)
  X    dead (should never be seen)
  Z    Defunct ("zombie") process, terminated but not reaped by its parent.

sig_stop

Stop this job. return false if not ok

sig_cont

Continue this job. return false if not ok

kill

Send a kill signal

equals($job)

compare towo jobs and return true/false FIXME.: should be implemented

toSummaryString

return a string for the current job

AUTHOR ^

Olivier Evalet, Alexandre Masselot, <alexandre.masselot at genebio.com>

BUGS ^

Please report any bugs or feature requests to bug-parallel-mpich-mpd at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Parallel-Mpich-MPD. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Parallel::Mpich::MPD

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2006 Olivier Evalet, Alexandre Masselot, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.