public class NetworkTopology extends Object implements IOReadableWritable
| Constructor and Description |
|---|
NetworkTopology() |
| Modifier and Type | Method and Description |
|---|---|
static NetworkTopology |
createEmptyTopology() |
static NetworkTopology |
fromFile(File topologyFile) |
static NetworkTopology |
fromFile(String topologyFileName) |
Object |
getAttachment() |
int |
getDepth() |
NetworkNode |
getNodeByName(String name) |
NetworkNode |
getRootNode() |
Iterator<NetworkNode> |
iterator() |
void |
read(DataInputView in) |
void |
setAttachment(Object attachment) |
String |
toString() |
void |
write(DataOutputView out) |
public static NetworkTopology fromFile(File topologyFile) throws IOException
IOExceptionpublic static NetworkTopology fromFile(String topologyFileName) throws IOException
IOExceptionpublic static NetworkTopology createEmptyTopology()
public NetworkNode getNodeByName(String name)
public NetworkNode getRootNode()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic int getDepth()
public Iterator<NetworkNode> iterator()
public void setAttachment(Object attachment)
public Object getAttachment()
Copyright © 2014 The Apache Software Foundation. All rights reserved.