public class ClusterTopologyReader extends Object
LoggedNetworkTopology object.| 构造器和说明 |
|---|
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 © 2009 The Apache Software Foundation