org.apache.hadoop.tools.rumen
Class ClusterTopologyReader

java.lang.Object
  extended by org.apache.hadoop.tools.rumen.ClusterTopologyReader

public class ClusterTopologyReader
extends Object

Reading JSON-encoded cluster topology and produce the parsed LoggedNetworkTopology object.


Constructor Summary
ClusterTopologyReader(InputStream input)
          Constructor.
ClusterTopologyReader(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
          Constructor.
 
Method Summary
 LoggedNetworkTopology get()
          Get the LoggedNetworkTopology object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterTopologyReader

public ClusterTopologyReader(org.apache.hadoop.fs.Path path,
                             org.apache.hadoop.conf.Configuration conf)
                      throws IOException
Constructor.

Parameters:
path - Path to the JSON-encoded topology file, possibly compressed.
conf -
Throws:
IOException

ClusterTopologyReader

public ClusterTopologyReader(InputStream input)
                      throws IOException
Constructor.

Parameters:
input - The input stream for the JSON-encoded topology data.
Throws:
IOException
Method Detail

get

public LoggedNetworkTopology get()
Get the LoggedNetworkTopology object.

Returns:
The LoggedNetworkTopology object parsed from the input.


Copyright © 2009 The Apache Software Foundation