Class AppProfile
- java.lang.Object
-
- com.google.cloud.bigtable.admin.v2.models.AppProfile
-
public final class AppProfile extends Object
An application profile, or app profile, stores settings that tell your Cloud Bigtable instance how to handle incoming requests from an application. When one of your applications connects to a Cloud Bigtable instance, it can specify an app profile, and Cloud Bigtable uses that app profile for any requests that the application sends over that connection.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.
- See Also:
- For more details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppProfile.MultiClusterRoutingPolicy
AAppProfile.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
AAppProfile.RoutingPolicy
that routes all requests to a specific cluster.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static AppProfile
fromProto(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()
-
-
-
Method Detail
-
fromProto
@InternalApi public static AppProfile fromProto(@Nonnull AppProfile proto)
Wraps a protobuf response.This method is considered an internal implementation detail and not meant to be used by applications.
-
getPolicy
public AppProfile.RoutingPolicy getPolicy()
Gets the routing policy for all read/write requests which use this app profile.
-
getId
public String getId()
Gets the id of this AppProfile.
-
getInstanceId
public String getInstanceId()
Gets the id of the instance that owns this AppProfile.
-
getDescription
public String getDescription()
Gets long form description of the use case for this AppProfile.
-
-