App::Switchman
switchman's internals
Acquires semaphore for a given resource
Returns an arrayref of hosts included int the given group
Creates a named lock in ZooKeeper Returns undef is lock already exists, otherwise returns true and sets lock_watch
Returns queue path for a given resource
Returns resource names listed in ZooKeeper Macros are processed
Determines if execution is allowed on the current host
Checks if task is already queue up for a given resource
Leaves all resource queues
Loads data from prefix znode Sets prefix_data_watch
Ensures existence of subnodes we use
Puts task in queue for resource Returns queue item path
Application loop Never returns
Execs command
Shows help and exits
Shows version info and exits
Waits in queue for a given resource
This software is copyright (c) 2012-2013 by Yandex LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Switchman, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Switchman
CPAN shell
perl -MCPAN -e shell install App::Switchman
For more information on module installation, please visit the detailed CPAN module installation guide.