public final class AppProfile extends Object
App profiles affect how your applications communicate with an instance that uses replication. As a result, app profiles are especially useful for instances that have 2 clusters. Even if your instance has only 1 cluster, you can use a unique app profile for each application that you run, or for different components within a single application.
Modifier and Type | Class and Description |
---|---|
static class |
AppProfile.MultiClusterRoutingPolicy
A
AppProfile.RoutingPolicy that tells Cloud Bigtable that it can route each request to any
available cluster. |
static interface |
AppProfile.RoutingPolicy
Represents the routing for read/write requests.
|
static class |
AppProfile.SingleClusterRoutingPolicy
A
AppProfile.RoutingPolicy that routes all requests to a specific cluster. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static AppProfile |
fromProto(com.google.bigtable.admin.v2.AppProfile proto)
Wraps a protobuf response.
|
String |
getDescription()
Gets long form description of the use case for this AppProfile.
|
String |
getId()
Gets the id of this AppProfile.
|
String |
getInstanceId()
Gets the id of the instance that owns this AppProfile.
|
AppProfile.RoutingPolicy |
getPolicy()
Gets the routing policy for all read/write requests which use this app profile.
|
int |
hashCode() |
@InternalApi public static AppProfile fromProto(@Nonnull com.google.bigtable.admin.v2.AppProfile proto)
This method is considered an internal implementation detail and not meant to be used by applications.
public AppProfile.RoutingPolicy getPolicy()
public String getId()
public String getInstanceId()
public String getDescription()
Copyright © 2019 Google LLC. All rights reserved.