Package org.apache.twill.zookeeper

Examples of org.apache.twill.zookeeper.NodeChildren


    }
    if (o == null || !(o instanceof NodeChildren)) {
      return false;
    }

    NodeChildren that = (NodeChildren) o;
    return stat.equals(that.getStat()) && children.equals(that.getChildren());
  }
View Full Code Here


          // Something very wrong
          LOG.error("The same watcher has been used for different event type.");
          return;
        }

        NodeChildren oldNodeChildren = (NodeChildren) oldResult;
        if (!result.getChildren().equals(oldNodeChildren.getChildren())) {
          process(new WatchedEvent(Event.EventType.NodeChildrenChanged, Event.KeeperState.SyncConnected, path));
        } else {
          process(new WatchedEvent(Event.EventType.NodeDataChanged, Event.KeeperState.SyncConnected, path));
        }
      }
View Full Code Here

TOP

Related Classes of org.apache.twill.zookeeper.NodeChildren

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.