com.google.cloud.bigtable.config
Class BigtableOptions
- java.lang.Object
-
- com.google.cloud.bigtable.config.BigtableOptions
-
- All Implemented Interfaces:
- Serializable, Cloneable
public class BigtableOptions extends Object implements Serializable, Cloneable
An immutable class providing access to configuration options for Bigtable.- Version:
- $Id: $Id
- Author:
- sduskis
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
BigtableOptions.Builder
A mutable builder for BigtableConnectionOptions.
-
Field Summary
Fields Modifier and Type Field and Description static String
BIGTABLE_ADMIN_HOST_DEFAULT
ConstantBIGTABLE_ADMIN_HOST_DEFAULT="bigtableadmin.googleapis.com"
static String
BIGTABLE_APP_PROFILE_DEFAULT
ConstantBIGTABLE_APP_PROFILE_DEFAULT=""
, defaults to the server default app profilestatic String
BIGTABLE_BATCH_DATA_HOST_DEFAULT
ConstantBIGTABLE_BATCH_DATA_HOST_DEFAULT="bigtable.googleapis.com"
static String
BIGTABLE_CLIENT_ADAPTER
static int
BIGTABLE_DATA_CHANNEL_COUNT_DEFAULT
ConstantBIGTABLE_DATA_CHANNEL_COUNT_DEFAULT=getDefaultDataChannelCount()
static String
BIGTABLE_DATA_HOST_DEFAULT
ConstantBIGTABLE_DATA_HOST_DEFAULT="bigtable.googleapis.com"
static String
BIGTABLE_EMULATOR_HOST_ENV_VAR
ConstantBIGTABLE_EMULATOR_HOST_ENV_VAR="bigtableadmin.googleapis.com"
static int
BIGTABLE_PORT_DEFAULT
ConstantBIGTABLE_PORT_DEFAULT=443
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static BigtableOptions.Builder
builder()
Create a new instance of theBigtableOptions.Builder
.protected BigtableOptions
clone()
boolean
equals(Object obj)
String
getAdminHost()
Getter for the fieldtableAdminHost
.String
getAppProfileId()
Getter for the fieldappProfileId
.BulkOptions
getBulkOptions()
Getter for the fieldbulkOptions
.CallOptionsConfig
getCallOptionsConfig()
Getter for the fieldcallOptionsConfig
.int
getChannelCount()
The number of data channels to create.CredentialOptions
getCredentialOptions()
Get the credential this object was constructed with.String
getDataHost()
Getter for the fielddataHost
.static BigtableOptions
getDefaultOptions()
String
getInstanceId()
Getter for the fieldinstanceId
.BigtableInstanceName
getInstanceName()
Getter for the fieldinstanceName
.int
getPort()
Getter for the fieldport
.String
getProjectId()
Getter for the fieldprojectId
.RetryOptions
getRetryOptions()
Options controlling retries.String
getUserAgent()
Gets the user-agent to be appended to User-Agent header when creating new streams for the channel.BigtableOptions.Builder
toBuilder()
toBuilder.String
toString()
boolean
useBatch()
boolean
useCachedChannel()
Experimental feature to allow situations with multiple connections to optimize their startup time.boolean
useGCJClient()
useGCJClientboolean
usePlaintextNegotiation()
usePlaintextNegotiation.
-
-
-
Field Detail
-
BIGTABLE_EMULATOR_HOST_ENV_VAR
public static final String BIGTABLE_EMULATOR_HOST_ENV_VAR
ConstantBIGTABLE_EMULATOR_HOST_ENV_VAR="bigtableadmin.googleapis.com"
- See Also:
- Constant Field Values
-
BIGTABLE_ADMIN_HOST_DEFAULT
public static final String BIGTABLE_ADMIN_HOST_DEFAULT
ConstantBIGTABLE_ADMIN_HOST_DEFAULT="bigtableadmin.googleapis.com"
- See Also:
- Constant Field Values
-
BIGTABLE_DATA_HOST_DEFAULT
public static final String BIGTABLE_DATA_HOST_DEFAULT
ConstantBIGTABLE_DATA_HOST_DEFAULT="bigtable.googleapis.com"
- See Also:
- Constant Field Values
-
BIGTABLE_BATCH_DATA_HOST_DEFAULT
public static final String BIGTABLE_BATCH_DATA_HOST_DEFAULT
ConstantBIGTABLE_BATCH_DATA_HOST_DEFAULT="bigtable.googleapis.com"
- See Also:
- Constant Field Values
-
BIGTABLE_PORT_DEFAULT
public static final int BIGTABLE_PORT_DEFAULT
ConstantBIGTABLE_PORT_DEFAULT=443
- See Also:
- Constant Field Values
-
BIGTABLE_DATA_CHANNEL_COUNT_DEFAULT
public static final int BIGTABLE_DATA_CHANNEL_COUNT_DEFAULT
ConstantBIGTABLE_DATA_CHANNEL_COUNT_DEFAULT=getDefaultDataChannelCount()
-
BIGTABLE_APP_PROFILE_DEFAULT
public static final String BIGTABLE_APP_PROFILE_DEFAULT
ConstantBIGTABLE_APP_PROFILE_DEFAULT=""
, defaults to the server default app profile- See Also:
- Constant Field Values
-
BIGTABLE_CLIENT_ADAPTER
public static final String BIGTABLE_CLIENT_ADAPTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultOptions
public static BigtableOptions getDefaultOptions()
-
builder
public static BigtableOptions.Builder builder()
Create a new instance of theBigtableOptions.Builder
.
-
getAdminHost
public String getAdminHost()
Getter for the fieldtableAdminHost
.- Returns:
- a
String
object.
-
getInstanceId
public String getInstanceId()
Getter for the fieldinstanceId
.- Returns:
- a
String
object.
-
getAppProfileId
public String getAppProfileId()
Getter for the fieldappProfileId
.- Returns:
- a
String
object.
-
getPort
public int getPort()
Getter for the fieldport
.- Returns:
- a int.
-
getCredentialOptions
public CredentialOptions getCredentialOptions()
Get the credential this object was constructed with. May be null.- Returns:
- Null to indicate no credentials, otherwise, the Credentials object.
-
getUserAgent
public String getUserAgent()
Gets the user-agent to be appended to User-Agent header when creating new streams for the channel.- Returns:
- a
String
object.
-
getRetryOptions
public RetryOptions getRetryOptions()
Options controlling retries.- Returns:
- a
RetryOptions
object.
-
getChannelCount
public int getChannelCount()
The number of data channels to create.- Returns:
- a int.
-
getInstanceName
public BigtableInstanceName getInstanceName()
Getter for the fieldinstanceName
.- Returns:
- a
BigtableInstanceName
object.
-
getBulkOptions
public BulkOptions getBulkOptions()
Getter for the fieldbulkOptions
.- Returns:
- a
BulkOptions
object.
-
usePlaintextNegotiation
public boolean usePlaintextNegotiation()
usePlaintextNegotiation.- Returns:
- a boolean.
-
getCallOptionsConfig
public CallOptionsConfig getCallOptionsConfig()
Getter for the fieldcallOptionsConfig
.- Returns:
- a
CallOptionsConfig
object.
-
useGCJClient
public boolean useGCJClient()
useGCJClient- Returns:
- a boolean flag to decide which client to use for Data & Admin Operations.
-
toBuilder
public BigtableOptions.Builder toBuilder()
toBuilder.- Returns:
- a
BigtableOptions.Builder
object.
-
useCachedChannel
public boolean useCachedChannel()
Experimental feature to allow situations with multiple connections to optimize their startup time.- Returns:
- true if this feature should be turned on in
BigtableSession
.
-
useBatch
public boolean useBatch()
-
clone
protected BigtableOptions clone()
-
-