NAME
App::Switchman
DESCRIPTION
switchman's internals
METHODS
acquire_semaphore
Acquires semaphore for a given resource
get_group_hosts
Returns an arrayref of hosts included int the given group
get_lock
Creates a named lock in ZooKeeper Returns undef is lock already exists, otherwise returns true and sets lock_watch
get_queue_path
Returns queue path for a given resource
get_resources
Returns resource names listed in ZooKeeper Macros are processed
is_group_serviced
Determines if execution is allowed on the current host
is_task_in_queue
Checks if task is already queue up for a given resource
leave_queues
Leaves all resource queues
load_prefix_data
Loads data from prefix znode Sets prefix_data_watch
prepare_zknodes
Ensures existence of subnodes we use
queue_up
Puts task in queue for resource Returns queue item path
run
Application loop Never returns
run_command
Execs command
usage
Shows help and exits
version
Shows version info and exits
wait_in_queue
Waits in queue for a given resource
COPYRIGHT AND LICENSE
This software is copyright (c) 2012-2014 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.