Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    zc.zookeeperrecipes 0.2.0

    Download button

    No screenshots available
    Downloads: 59  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jim Fulton | More programs
    ZPL / FREE
    February 23rd, 2012, 13:41 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    zc.zookeeperrecipes description

    The devtree recipe sets up temporary ZooKeeper tree for a buildout

    zc.zookeeperrecipes is a buildout recipe that sets up temporary ZooKeeper tree for a buildout:

    [myproject]
    recipe = zc.zookeeperrecipes:devtree
    import-file = tree.txt


    In this example, we're creating a ZooKeeper tree at the path /myprojectYYYY-MM-DDTHH:MM:SS.SSSSSS with data imported from the buildout-local file tree.txt, where YYYY-MM-DDTHH:MM:SS.SSSSSS is the ISO date-time when the node was created.

    The tree recipe options are:

    zookeeper

     Optional ZooKeeper connection string.

     It defaults to '127.0.0.1:2181'.
    path

     Optional path at which to create the tree.

     If not provided, the part name is used, with a leading / added.

     When a devtree part is installed, a path is created at a path derived from the given (or implied) path by adding the current date and time to the path in ISO date-time format (YYYY-MM-DDTHH:MM:SS.SSSSSS). The derived path is stored a file in the buildout parts directory with a name equal to the section name.
    effective-path

     Optional path to be used as is.

     This option is normally computed by the recipe and is queryable from other recipes, but it may also be set explicitly.
    import-file

     Optional import file.

     This is the name of a file containing tree-definition text. See the zc.zk documentation for information on the format of this file.
    import-text

     Optional import text.

     Unfortunately, because of the way buildout parses configuration files, leading whitespace is stripped, making this option hard to specify.

    Cleanup

    We don't want trees to accumulate indefinately. When using a local zookeeper (default), when the recipe is run, the entire tree is scanned looking for nodes that have buildout:location properties with paths that no-longer exist in the local file system paths that contain different ZooKeeper paths.

    If such nodes are found, then the nodes are removed and, if the nodes had any ephemeral subnodes with pids, those pids are sent a SIGTERM signal.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Add an option to define buildout-specific helper scripts for working with the buildout's ZooKeeper tree.

      


    TAGS:

    ZooKeeper tree | temporary ZooKeeper | ZooKeeper | tree | temporary



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM