@Test public void testAdminSettingsWithEmulator() throws IOException { ServerSocket serverSocket = new ServerSocket(0); final int availablePort = serverSocket.getLocalPort(); serverSocket.close(); String emulatorHost = "localhost:" + availablePort; configuration.set(BIGTABLE_EMULATOR_HOST_KEY, emulatorHost); BigtableTableAdminSettings adminSettings = ((BigtableHBaseVeneerSettings) BigtableHBaseVeneerSettings.create(configuration)) .getTableAdminSettings(); assertEquals(emulatorHost, adminSettings.getStubSettings().getEndpoint()); CredentialsProvider credProvider = adminSettings.getStubSettings().getCredentialsProvider(); assertTrue(credProvider instanceof NoCredentialsProvider); }
public BigtableTableAdminSettings getTableAdminSettings() { return tableAdminSettings; }
BigtableHBaseVeneerSettings extends BigtableHBaseSettings { public BigtableTableAdminSettings getTableAdminSettings() { return tableAdminSettings; } }
BigtableHBaseVeneerSettings extends BigtableHBaseSettings { public BigtableTableAdminSettings getTableAdminSettings() { return tableAdminSettings; } BigtableHBaseVeneerSettings(Configuration configuration); }
BigtableHBaseVeneerSettings extends BigtableHBaseSettings { public BigtableTableAdminSettings getTableAdminSettings() { return tableAdminSettings; } BigtableHBaseVeneerSettings(Configuration configuration); @Override String getDataHost(); @Override String getAdminHost(); @Override int getPort(); @Override int getBulkMaxRowCount(); @Override long getBatchingMaxRequestSize(); @Override boolean isRetriesWithoutTimestampAllowed(); boolean isChannelPoolCachingEnabled(); BigtableDataSettings getDataSettings(); BigtableTableAdminSettings getTableAdminSettings(); @Nullable BigtableInstanceAdminSettings getInstanceAdminSettings(); }
BigtableHBaseVeneerSettings extends BigtableHBaseSettings { public BigtableTableAdminSettings getTableAdminSettings() { return tableAdminSettings; } BigtableHBaseVeneerSettings(Configuration configuration); @Override String getDataHost(); @Override String getAdminHost(); @Override int getPort(); @Override int getBulkMaxRowCount(); @Override long getBatchingMaxRequestSize(); @Override boolean isRetriesWithoutTimestampAllowed(); boolean isChannelPoolCachingEnabled(); BigtableDataSettings getDataSettings(); BigtableTableAdminSettings getTableAdminSettings(); @Nullable BigtableInstanceAdminSettings getInstanceAdminSettings();  }