protected static class RackawareEnsemblePlacementPolicy.BookieNode extends Object implements org.apache.bookkeeper.net.Node
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.apache.bookkeeper.net.BookieSocketAddress |
getAddr() |
int |
getLevel() |
String |
getName() |
String |
getNetworkLocation() |
org.apache.bookkeeper.net.Node |
getParent() |
int |
hashCode() |
void |
setLevel(int level)
Set this node's level in the tree
|
void |
setNetworkLocation(String location)
Set this node's network location
|
void |
setParent(org.apache.bookkeeper.net.Node parent)
Set this node's parent
|
String |
toString() |
public org.apache.bookkeeper.net.BookieSocketAddress getAddr()
public int getLevel()
getLevel in interface org.apache.bookkeeper.net.Nodepublic void setLevel(int level)
org.apache.bookkeeper.net.NodesetLevel in interface org.apache.bookkeeper.net.Nodelevel - the levelpublic org.apache.bookkeeper.net.Node getParent()
getParent in interface org.apache.bookkeeper.net.Nodepublic void setParent(org.apache.bookkeeper.net.Node parent)
org.apache.bookkeeper.net.NodesetParent in interface org.apache.bookkeeper.net.Nodeparent - the parentpublic String getName()
getName in interface org.apache.bookkeeper.net.Nodepublic String getNetworkLocation()
getNetworkLocation in interface org.apache.bookkeeper.net.Nodepublic void setNetworkLocation(String location)
org.apache.bookkeeper.net.NodesetNetworkLocation in interface org.apache.bookkeeper.net.Nodelocation - the locationCopyright © 2011-2016 The Apache Software Foundation. All Rights Reserved.