|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.net.NodeBase
public class NodeBase
A base class that implements interface Node
Field Summary | |
---|---|
protected String |
location
|
protected String |
name
|
static char |
PATH_SEPARATOR
|
static String |
PATH_SEPARATOR_STR
|
static String |
ROOT
|
Constructor Summary | |
---|---|
NodeBase()
Default constructor |
|
NodeBase(String path)
Construct a node from its path |
|
NodeBase(String name,
String location)
Construct a node from its name and its location |
Method Summary | |
---|---|
String |
getName()
Return this node's name |
String |
getNetworkLocation()
Return this node's network location |
String |
getPath()
Return this node's path |
static String |
normalize(String path)
Normalize a path |
String |
toString()
Return this node's string representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char PATH_SEPARATOR
public static String PATH_SEPARATOR_STR
public static final String ROOT
protected String name
protected String location
Constructor Detail |
---|
public NodeBase()
public NodeBase(String path)
path
- a concatenation of this node's location, the path seperator, and its namepublic NodeBase(String name, String location)
name
- this node's namelocation
- this node's locationMethod Detail |
---|
public String getName()
getName
in interface Node
public String getNetworkLocation()
getNetworkLocation
in interface Node
public String getPath()
public String toString()
toString
in class Object
public static String normalize(String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |