Class InstanceManager

  • All Implemented Interfaces:
    AsyncCallback, AsyncCallback.ChildrenCallback, Watcher

    public class InstanceManager
    extends java.lang.Object
    implements AsyncCallback.ChildrenCallback, Watcher
    This class doles out assignments to InstanceContainers that are registered to a ZooKeeper znode. The znode will have four child nodes: * ready: this znode indicates that the InstanceManager is running * available: the children of this znode are ephemeral nodes representing running InstanceContainers * assignments: there will be a child under this znode for each available InstanceContainer. those znodes will have a child for each assigned instance * reports: there will be a child under this znode for each instance that is running. it will have the report string from the instance.