woosley > PJob > PJob::Client

Download:
PJob-0.41.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.41   Source  

NAME ^

PJob::Client -- Simple PJob client for PJob Server

VERSION ^

This document describes version 0.41 of PJob::Client

SYNOPSIS ^

    $pc =  PJob::Client->new(server => 'localhost',port => '10086')
                       ->run();
    $pc =  PJob::Client->new(server => 'localhost:10086')
            ->queue_command('ls','ps')->run_queue;

DESCRIPTION ^

PJob::Client is the client for PJob::Server

server
    $pc->server('localhost:10086');
    $pc->server('localhost');
port
    $pc->port('10086');

This method will overwrite the port specified by server

run

run a interative client

queue_command

queue some commands into the command queue

run_queue

run the commands in the queue

SEE ALSO ^

POE::Component::Client::TCP,Any::Moose,PJob::Server

AUTHOR ^

woosley.xu<woosley.xu@gmail.com>

COPYRIGHT & LICENSE ^

This software is copyright (c) 2009 by woosley.xu.

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

syntax highlighting: