test_class.file: OpenSOC-Pcap_Service/src/test/java/com/opensoc/pcapservice/HBaseConfigurationUtilTest.java
test_class.identifier: HBaseConfigurationUtilTest
test_case.body: @Test
    public void test_read() throws IOException {
      Configuration configuration = HBaseConfigurationUtil.read();
      Assert.isTrue(configuration != null, "Configuration must not be null");
      Assert.isTrue(configuration.get("hbase.client.retries.number").equals("1"),
          "value must be equal");
    }
test_case.class_method_signature: HBaseConfigurationUtilTest.test_read()
test_case.full_signature: @Test public void test_read()
test_case.identifier: test_read
test_case.invocations: read isTrue isTrue equals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_read()
focal_class.declarator: LOGGER = Logger
        .getLogger(HBaseConfigurationUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger
        .getLogger(HBaseConfigurationUtil.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: config
focal_class.modifier: private static
focal_class.original_string: private static Configuration config;
focal_class.type: Configuration
focal_class.var_name: config
focal_class.declarator: clusterConnection = null
focal_class.modifier: private static
focal_class.original_string: private static HConnection clusterConnection = null;
focal_class.type: HConnection
focal_class.var_name: clusterConnection
focal_class.file: OpenSOC-Pcap_Service/src/main/java/com/opensoc/pcapservice/HBaseConfigurationUtil.java
focal_class.identifier: HBaseConfigurationUtil
focal_class.class_method_signature: HBaseConfigurationUtil.getConnection()
focal_class.full_signature: public static HConnection getConnection()
focal_class.identifier: getConnection
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: HConnection
focal_class.signature: HConnection getConnection()
focal_class.class_method_signature: HBaseConfigurationUtil.createClusterConncetion()
focal_class.full_signature: private static void createClusterConncetion()
focal_class.identifier: createClusterConncetion
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createClusterConncetion()
focal_class.class_method_signature: HBaseConfigurationUtil.connectionAvailable()
focal_class.full_signature: private static boolean connectionAvailable()
focal_class.identifier: connectionAvailable
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean connectionAvailable()
focal_class.class_method_signature: HBaseConfigurationUtil.addShutdownHook()
focal_class.full_signature: private static void addShutdownHook()
focal_class.identifier: addShutdownHook
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void addShutdownHook()
focal_class.class_method_signature: HBaseConfigurationUtil.closeConnection()
focal_class.full_signature: public static void closeConnection()
focal_class.identifier: closeConnection
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void closeConnection()
focal_class.class_method_signature: HBaseConfigurationUtil.read()
focal_class.full_signature: public static Configuration read()
focal_class.identifier: read
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Configuration
focal_class.signature: Configuration read()
focal_method.body: public static Configuration read() {
      if (config == null) {
        synchronized (HBaseConfigurationUtil.class) {
          if (config == null) {
            config = HBaseConfiguration.create();
  
            config.set(
                HBaseConfigConstants.HBASE_ZOOKEEPER_QUORUM,
                ConfigurationUtil.getConfiguration().getString(
                    "hbase.zookeeper.quorum"));
            config.set(
                HBaseConfigConstants.HBASE_ZOOKEEPER_CLIENT_PORT,
                ConfigurationUtil.getConfiguration().getString(
                    "hbase.zookeeper.clientPort"));
            config.set(
                HBaseConfigConstants.HBASE_CLIENT_RETRIES_NUMBER,
                ConfigurationUtil.getConfiguration().getString(
                    "hbase.client.retries.number"));
            config.set(
                HBaseConfigConstants.HBASE_ZOOKEEPER_SESSION_TIMEOUT,
                ConfigurationUtil.getConfiguration().getString(
                    "zookeeper.session.timeout"));
            config.set(
                HBaseConfigConstants.HBASE_ZOOKEEPER_RECOVERY_RETRY,
                ConfigurationUtil.getConfiguration().getString(
                    "zookeeper.recovery.retry"));
          }
        }
      }
      return config;
    }
focal_method.class_method_signature: HBaseConfigurationUtil.read()
focal_method.full_signature: public static Configuration read()
focal_method.identifier: read
focal_method.invocations: create set getString getConfiguration set getString getConfiguration set getString getConfiguration set getString getConfiguration set getString getConfiguration
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: Configuration
focal_method.signature: Configuration read()