Tabnine Logo
BigtableTableAdminClient.listSnapshotsAsync
Code IndexAdd Tabnine to your IDE (free)

How to use
listSnapshotsAsync
method
in
com.google.cloud.bigtable.grpc.BigtableTableAdminClient

Best Java code snippets using com.google.cloud.bigtable.grpc.BigtableTableAdminClient.listSnapshotsAsync (Showing top 5 results out of 315)

origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * Lists all snapshots associated with the specified cluster.
 * @param request a {@link ListSnapshotsRequest} object.
 * @return The {@link ListSnapshotsResponse} which has the list of the snapshots in the cluster.
 */
public CompletableFuture<ListSnapshotsResponse> listSnapshotsAsync(ListSnapshotsRequest request) {
 return toCompletableFuture(adminClient.listSnapshotsAsync(request));
}
origin: com.google.cloud.bigtable/bigtable-hbase-2.x

/**
 * Lists all snapshots associated with the specified cluster.
 * @param request a {@link ListSnapshotsRequest} object.
 * @return The {@link ListSnapshotsResponse} which has the list of the snapshots in the cluster.
 */
public CompletableFuture<ListSnapshotsResponse> listSnapshotsAsync(ListSnapshotsRequest request) {
 return toCompletableFuture(adminClient.listSnapshotsAsync(request));
}
origin: GoogleCloudPlatform/cloud-bigtable-client

@Override
public List<SnapshotDescription> listSnapshots()
  throws IOException {
 ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
   .setParent(getSnapshotClusterName().toString())
   .build();
 ListSnapshotsResponse snapshotList = Futures.getChecked(bigtableTableAdminClient
   .listSnapshotsAsync(request), IOException.class);
 List<SnapshotDescription> response = new ArrayList<>();
 for (Snapshot snapshot : snapshotList.getSnapshotsList()) {
  response.add(new SnapshotDescription(
    snapshot.getName(),
    TableName.valueOf(snapshot.getSourceTable().getName())));
 }
 return response;
}
origin: com.google.cloud.bigtable/bigtable-hbase-2.x

@Override
public List<SnapshotDescription> listSnapshots()
  throws IOException {
 ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
   .setParent(getSnapshotClusterName().toString())
   .build();
 ListSnapshotsResponse snapshotList = Futures.getChecked(bigtableTableAdminClient
   .listSnapshotsAsync(request), IOException.class);
 List<SnapshotDescription> response = new ArrayList<>();
 for (Snapshot snapshot : snapshotList.getSnapshotsList()) {
  response.add(new SnapshotDescription(
    snapshot.getName(),
    TableName.valueOf(snapshot.getSourceTable().getName())));
 }
 return response;
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/** {@inheritDoc} */
@Override
public List<HBaseProtos.SnapshotDescription> listSnapshots() throws IOException {
 ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
   .setParent(getSnapshotClusterName().toString())
   .build();
 ListSnapshotsResponse snapshotList = Futures.getChecked(
   bigtableTableAdminClient.listSnapshotsAsync(request),
   IOException.class
 );
 List<HBaseProtos.SnapshotDescription> response = new ArrayList<>();
 for (Snapshot snapshot : snapshotList.getSnapshotsList()) {
  BigtableSnapshotName snapshotName = new BigtableSnapshotName(snapshot.getName());
  BigtableTableName tableName = new BigtableTableName(snapshot.getSourceTable().getName());
  response.add(HBaseProtos.SnapshotDescription.newBuilder()
    .setName(snapshotName.getSnapshotId())
    .setTable(tableName.getTableId())
    .setCreationTime(TimeUnit.SECONDS.toMillis(snapshot.getCreateTime().getSeconds()))
    .build());
 }
 return response;
}
com.google.cloud.bigtable.grpcBigtableTableAdminClientlistSnapshotsAsync

Javadoc

Lists all snapshots associated with the specified cluster.

Popular methods of BigtableTableAdminClient

  • getTable
  • createTable
  • createTableAsync
  • deleteTable
  • createTableFromSnapshotAsync
  • deleteSnapshotAsync
  • deleteTableAsync
  • dropRowRange
  • dropRowRangeAsync
  • getTableAsync
  • listTables
  • listTablesAsync
  • listTables,
  • listTablesAsync,
  • modifyColumnFamily,
  • modifyColumnFamilyAsync,
  • snapshotTableAsync,
  • getSnapshotAsync

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now