public class ClusterTopologyReader extends Object
LoggedNetworkTopology object.| Constructor and Description |
|---|
ClusterTopologyReader(InputStream input)
Constructor.
|
ClusterTopologyReader(Path path,
Configuration conf)
Constructor.
|
public ClusterTopologyReader(Path path, 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 © 2013 Apache Software Foundation. All rights reserved.