Uses of Interface
org.apache.bookkeeper.net.Node
-
Packages that use Node Package Description org.apache.bookkeeper.client BookKeeper Client.org.apache.bookkeeper.net Network-related classes. -
-
Uses of Node in org.apache.bookkeeper.client
Classes in org.apache.bookkeeper.client with type parameters of type Node Modifier and Type Interface Description interfaceITopologyAwareEnsemblePlacementPolicy<T extends Node>Interface for topology aware ensemble placement policy.static interfaceITopologyAwareEnsemblePlacementPolicy.Ensemble<T extends Node>Ensemble used to hold the result of an ensemble selected for placement.static interfaceITopologyAwareEnsemblePlacementPolicy.Predicate<T extends Node>Predicate used when choosing an ensemble.Methods in org.apache.bookkeeper.client that return types with arguments of type Node Modifier and Type Method Description protected java.util.Set<Node>TopologyAwareEnsemblePlacementPolicy. convertBookiesToNodes(java.util.Collection<BookieId> bookies)Method parameters in org.apache.bookkeeper.client with type arguments of type Node Modifier and Type Method Description (package private) static java.util.Set<java.lang.String>TopologyAwareEnsemblePlacementPolicy. getNetworkLocations(java.util.Set<Node> bookieNodes)protected BookieNodeRegionAwareEnsemblePlacementPolicy. replaceFromRack(BookieNode bookieNodeToReplace, java.util.Set<Node> excludeBookies, ITopologyAwareEnsemblePlacementPolicy.Predicate<BookieNode> predicate, ITopologyAwareEnsemblePlacementPolicy.Ensemble<BookieNode> ensemble, boolean enforceDurability)TITopologyAwareEnsemblePlacementPolicy. selectFromNetworkLocation(java.lang.String networkLoc, java.util.Set<Node> excludeBookies, ITopologyAwareEnsemblePlacementPolicy.Predicate<T> predicate, ITopologyAwareEnsemblePlacementPolicy.Ensemble<T> ensemble, boolean fallbackToRandom)Select a node from a given network location.BookieNodeRackawareEnsemblePlacementPolicy. selectFromNetworkLocation(java.lang.String networkLoc, java.util.Set<Node> excludeBookies, ITopologyAwareEnsemblePlacementPolicy.Predicate<BookieNode> predicate, ITopologyAwareEnsemblePlacementPolicy.Ensemble<BookieNode> ensemble, boolean fallbackToRandom)BookieNodeRackawareEnsemblePlacementPolicyImpl. selectFromNetworkLocation(java.lang.String networkLoc, java.util.Set<Node> excludeBookies, ITopologyAwareEnsemblePlacementPolicy.Predicate<BookieNode> predicate, ITopologyAwareEnsemblePlacementPolicy.Ensemble<BookieNode> ensemble, boolean fallbackToRandom)BookieNodeZoneawareEnsemblePlacementPolicyImpl. selectFromNetworkLocation(java.lang.String networkLoc, java.util.Set<Node> excludeBookies, ITopologyAwareEnsemblePlacementPolicy.Predicate<BookieNode> predicate, ITopologyAwareEnsemblePlacementPolicy.Ensemble<BookieNode> ensemble, boolean fallbackToRandom)protected java.util.List<BookieNode>RackawareEnsemblePlacementPolicyImpl. selectRandom(int numBookies, java.util.Set<Node> excludeBookies, ITopologyAwareEnsemblePlacementPolicy.Predicate<BookieNode> predicate, ITopologyAwareEnsemblePlacementPolicy.Ensemble<BookieNode> ensemble)Choose a random node from whole cluster.protected BookieNodeRackawareEnsemblePlacementPolicyImpl. selectRandomFromRack(java.lang.String netPath, java.util.Set<Node> excludeBookies, ITopologyAwareEnsemblePlacementPolicy.Predicate<BookieNode> predicate, ITopologyAwareEnsemblePlacementPolicy.Ensemble<BookieNode> ensemble)Choose random node under a given network path.protected java.util.List<BookieNode>RackawareEnsemblePlacementPolicyImpl. selectRandomInternal(java.util.List<BookieNode> bookiesToSelectFrom, int numBookies, java.util.Set<Node> excludeBookies, ITopologyAwareEnsemblePlacementPolicy.Predicate<BookieNode> predicate, ITopologyAwareEnsemblePlacementPolicy.Ensemble<BookieNode> ensemble) -
Uses of Node in org.apache.bookkeeper.net
Classes in org.apache.bookkeeper.net that implement Node Modifier and Type Class Description classBookieNodeBookie Node implementation.(package private) static classNetworkTopologyImpl.InnerNodeInnerNode represents a switch/router of a data center or rack.classNodeBaseA base class that implements interface Node.Fields in org.apache.bookkeeper.net declared as Node Modifier and Type Field Description protected NodeNodeBase. parentFields in org.apache.bookkeeper.net with type parameters of type Node Modifier and Type Field Description protected java.util.List<Node>NetworkTopologyImpl.InnerNode. childrenprotected java.util.concurrent.ConcurrentMap<Node,StabilizeNetworkTopology.NodeStatus>StabilizeNetworkTopology. nodeStatusesMethods in org.apache.bookkeeper.net that return Node Modifier and Type Method Description NodeNetworkTopologyImpl. chooseRandom(java.lang.String scope)Randomly choose one node from scope.(package private) NodeNetworkTopologyImpl.InnerNode. getLeaf(int leafIndex, Node excludedNode)Get leafIndex leaf of this subtree if it is not in the excludedNode.NodeNetworkTopology. getNode(java.lang.String loc)Retrieve a node from the network topology.NodeNetworkTopologyImpl. getNode(java.lang.String loc)Given a string representation of a node, return its reference.NodeStabilizeNetworkTopology. getNode(java.lang.String loc)protected NodeNetworkTopologyImpl. getNodeForNetworkLocation(Node node)Return a reference to the node given its string representation.NodeNode. getParent()NodeNodeBase. getParent()Methods in org.apache.bookkeeper.net that return types with arguments of type Node Modifier and Type Method Description (package private) java.util.List<Node>NetworkTopologyImpl.InnerNode. getChildren()java.util.List<Node>NetworkTopologyImpl. getDatanodesInRack(java.lang.String loc)Given a string representation of a rack, return its children.java.util.Set<Node>NetworkTopology. getLeaves(java.lang.String loc)Returns the nodes under a location.java.util.Set<Node>NetworkTopologyImpl. getLeaves(java.lang.String scope)java.util.Set<Node>StabilizeNetworkTopology. getLeaves(java.lang.String loc)Methods in org.apache.bookkeeper.net with parameters of type Node Modifier and Type Method Description voidNetworkTopology. add(Node node)Add a node to the network topology.voidNetworkTopologyImpl. add(Node node)Add a leaf node.(package private) booleanNetworkTopologyImpl.InnerNode. add(Node n)Add node n to the subtree of this node.voidStabilizeNetworkTopology. add(Node node)booleanNetworkTopology. contains(Node node)Check if the tree contains node node.booleanNetworkTopologyImpl. contains(Node node)Check if the tree contains node node.booleanStabilizeNetworkTopology. contains(Node node)intNetworkTopologyImpl. getDistance(Node node1, Node node2)Return the distance between two nodes.(package private) NodeNetworkTopologyImpl.InnerNode. getLeaf(int leafIndex, Node excludedNode)Get leafIndex leaf of this subtree if it is not in the excludedNode.protected NodeNetworkTopologyImpl. getNodeForNetworkLocation(Node node)Return a reference to the node given its string representation.static java.lang.StringNodeBase. getPath(Node node)Get the path of a node.(package private) booleanNetworkTopologyImpl.InnerNode. isAncestor(Node n)Judge if this node is an ancestor of node n.booleanNetworkTopologyImpl. isOnSameNodeGroup(Node node1, Node node2)Return false directly as not aware of NodeGroup, to be override in sub-class.booleanNetworkTopologyImpl. isOnSameRack(Node node1, Node node2)Check if two nodes are on the same rack.(package private) booleanNetworkTopologyImpl.InnerNode. isParent(Node n)Judge if this node is the parent of node n.protected booleanNetworkTopologyImpl. isSameParents(Node node1, Node node2)Compare the parents of each node for equality.voidNetworkTopologyImpl. pseudoSortByDistance(Node reader, Node[] nodes)Sort nodes array by their distances to reader It linearly scans the array, if a local node is found, swap it with the first element of the array.voidNetworkTopology. remove(Node node)Remove a node from network topology.(package private) booleanNetworkTopologyImpl.InnerNode. remove(Node n)Remove node n from the subtree of this node.voidNetworkTopologyImpl. remove(Node node)Remove a node.voidStabilizeNetworkTopology. remove(Node node)voidNode. setParent(Node parent)Set this node's parent.voidNodeBase. setParent(Node parent)Set this node's parent.protected static voidNetworkTopologyImpl. swap(Node[] nodes, int i, int j)Swap two array items.(package private) voidStabilizeNetworkTopology. updateNode(Node node, boolean tentativeToRemove)Method parameters in org.apache.bookkeeper.net with type arguments of type Node Modifier and Type Method Description intNetworkTopology. countNumOfAvailableNodes(java.lang.String scope, java.util.Collection<Node> excludedNodes)Return the number of leaves in scope but not in excludedNodes.intNetworkTopologyImpl. countNumOfAvailableNodes(java.lang.String scope, java.util.Collection<Node> excludedNodes)intStabilizeNetworkTopology. countNumOfAvailableNodes(java.lang.String scope, java.util.Collection<Node> excludedNodes)Constructors in org.apache.bookkeeper.net with parameters of type Node Constructor Description NodeBase(java.lang.String name, java.lang.String location, Node parent, int level)Construct a node from its name and its location.
-