Class HConnectionTestingUtility

java.lang.Object
org.apache.hadoop.hbase.client.HConnectionTestingUtility

public class HConnectionTestingUtility extends Object
Connection testing utility.
  • Constructor Details

  • Method Details

    • getMockedConnection

      public static org.apache.hadoop.hbase.client.Connection getMockedConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
      Get a Mocked Connection that goes with the passed conf configuration instance. Minimally the mock will return <code>conf</conf> when Connection.getConfiguration() is invoked. Be sure to shutdown the connection when done by calling Connection.close() else it will stick around; this is probably not what you want.
      Parameters:
      conf - configuration
      Returns:
      ConnectionImplementation object for conf
      Throws:
      IOException