public class ClusterTopologyReader extends Object
LoggedNetworkTopology object.| Constructor and Description |
|---|
ClusterTopologyReader(InputStream input)
Constructor.
|
ClusterTopologyReader(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
LoggedNetworkTopology |
get()
Get the
LoggedNetworkTopology object. |
public ClusterTopologyReader(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws IOException
path - Path to the JSON-encoded topology file, possibly compressed.conf - IOExceptionpublic ClusterTopologyReader(InputStream input) throws IOException
input - The input stream for the JSON-encoded topology data.IOExceptionpublic LoggedNetworkTopology get()
LoggedNetworkTopology object.LoggedNetworkTopology object parsed from the input.Copyright © 2008–2020 Apache Software Foundation. All rights reserved.