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.Node
public void setLevel(int level)
org.apache.bookkeeper.net.Node
setLevel
in interface org.apache.bookkeeper.net.Node
level
- the levelpublic org.apache.bookkeeper.net.Node getParent()
getParent
in interface org.apache.bookkeeper.net.Node
public void setParent(org.apache.bookkeeper.net.Node parent)
org.apache.bookkeeper.net.Node
setParent
in interface org.apache.bookkeeper.net.Node
parent
- the parentpublic String getName()
getName
in interface org.apache.bookkeeper.net.Node
public String getNetworkLocation()
getNetworkLocation
in interface org.apache.bookkeeper.net.Node
public void setNetworkLocation(String location)
org.apache.bookkeeper.net.Node
setNetworkLocation
in interface org.apache.bookkeeper.net.Node
location
- the locationCopyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.