/** {@inheritDoc} */ @Override public void waitForOperation(Operation operation) throws IOException, TimeoutException { waitForOperation(operation, 10, TimeUnit.MINUTES); }
/** * Create a {@link BigtableInstanceClient}. {@link BigtableSession} objects assume that * {@link BigtableOptions} have a project and instance. A {@link BigtableInstanceClient} does not * require project id or instance id, so {@link BigtableOptions#getDefaultOptions()} may be used * if there are no service account credentials settings. * * @return a fully formed {@link BigtableInstanceClient} * @throws IOException * @throws GeneralSecurityException */ public static BigtableInstanceClient createInstanceClient(BigtableOptions options) throws IOException, GeneralSecurityException { return new BigtableInstanceGrpcClient(createChannelPool(options.getAdminHost(), options)); }
currentOperationState = getOperation(request);
/** * <p>Getter for the field <code>instanceAdminClient</code>.</p> * * @return a {@link com.google.cloud.bigtable.grpc.BigtableInstanceClient} object. * @throws java.io.IOException if any. */ public synchronized BigtableInstanceClient getInstanceAdminClient() throws IOException { if (instanceAdminClient == null) { ManagedChannel channel = createManagedPool(options.getAdminHost(), 1); instanceAdminClient = new BigtableInstanceGrpcClient(channel); } return instanceAdminClient; }
/** * Constructor for the utility. Prefer * {@link BigtableClusterUtilities#forInstance(String, String)} or * {@link BigtableClusterUtilities#forAllInstances(String)} rather than this method. * @param options that specify projectId, instanceId, credentials and retry options. * @throws GeneralSecurityException * @throws IOException */ public BigtableClusterUtilities(final BigtableOptions options) throws IOException, GeneralSecurityException { this.instanceName = Preconditions.checkNotNull( options.getInstanceName(), "ProjectId and instanceId have to be set in the options. Use '-' for all instanceIds."); channel = BigtableSession.createChannelPool(options.getAdminHost(), options); client = new BigtableInstanceGrpcClient(channel); }