GRID::Machine

GRID::Machine module contains remote procedure calls over a SSH link.
Download

GRID::Machine Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Casiano Rodriguez Leon
  • Publisher web site:
  • http://search.cpan.org/~casiano/GRID-Machine-0.095/lib/GRID/Machine.pod

GRID::Machine Tags


GRID::Machine Description

GRID::Machine module contains remote procedure calls over a SSH link. GRID::Machine module contains remote procedure calls over a SSH link.SYNOPSIS use GRID::Machine; my $host = shift || 'mylogin@remote.machine'; my $machine = GRID::Machine->new(host => $host, uses => ); # Install function 'rmap' on remote.machine my $r = $machine->sub( rmap => q{ my $f = shift; die "Code reference expectedn" unless UNIVERSAL::isa($f, 'CODE'); my @result; for (@_) { die "Array reference expectedn" unless UNIVERSAL::isa($_, 'ARRAY'); print hostname().": processing row n"; push @result, ; } return @result; }, ); die $r->errmsg unless $r->ok; my $cube = sub { $_**3 }; # RPC involving code references and nested structures ... $r = $machine->rmap($cube, , , ); print $r; # Dumps remote stdout and stderr for ($r->Results) { # Output: my $format = "]"x(@$_)."n"; # 1 8 27 printf $format, @$_ # 64 125 216 } # 343 512 729This module is inspired in the IPC::PerlSSH module by Paul Evans. It provides Remote Procedure Calls (RPC) via a SSH connection. What made IPC::PerlSSH appealing to me was that 'no special software is required on the remote end, other than the ability to run perl nor are any special administrative rights required; any account that has shell access and can execute the perl binary on the remote host can use this module'.The only requirement being that automatic SSH autentification between the local and remote hosts has been established. I have tried to expand the capabilities but preserving this feature.Provide Remote Procedure Calls (RPC). Subroutines on the remote side can be called with arbitrary nested structures as arguments from the local side.The result of a remote call is a GRID::Machine::Result object. Among the attributes of such object are the results of the call, the ouput produced in stdout and stderr, errmsg etc. The remote function can produce output without risk of misleading the protocol.Services for the transference of files are providedSupport for writing and management Remote Modules and the transference of Classes and Modules between machinesAn Extensible Protocol Requirements: · Perl


GRID::Machine Related Software