public class GdbSettings
extends java.lang.Object
GdbReadWriteSplittingPlugin. A single instance is shared by the GDB writer
resolver, reader candidate source, and initial-connection handler.| Modifier and Type | Field and Description |
|---|---|
static AwsWrapperProperty |
ENABLE_GWF |
static AwsWrapperProperty |
RESTRICT_READER_TO_HOME_REGION |
static AwsWrapperProperty |
RESTRICT_WRITER_TO_HOME_REGION |
static AwsWrapperProperty |
RW_HOME_REGION |
| Constructor and Description |
|---|
GdbSettings(java.util.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.util.Set<java.lang.String> |
accessibleRegions() |
void |
addSnapshotState(java.util.List<Pair<java.lang.String,java.lang.Object>> state)
Snapshot fragment fields shared by GDB helpers.
|
boolean |
enableGwf() |
@Nullable java.lang.String |
homeRegion() |
void |
init(HostSpec initHostSpec,
java.util.Properties props)
Resolves and validates the home region and accessible regions (idempotent).
|
boolean |
isInAccessibleRegion(HostSpec host) |
boolean |
isInHomeRegion(HostSpec host) |
RdsUtils |
rdsHelper() |
boolean |
restrictReaderToHomeRegion() |
boolean |
restrictWriterToHomeRegion() |
public static final AwsWrapperProperty RW_HOME_REGION
public static final AwsWrapperProperty RESTRICT_WRITER_TO_HOME_REGION
public static final AwsWrapperProperty RESTRICT_READER_TO_HOME_REGION
public static final AwsWrapperProperty ENABLE_GWF
public void init(HostSpec initHostSpec, java.util.Properties props) throws java.sql.SQLException
java.sql.SQLExceptionpublic RdsUtils rdsHelper()
public @Nullable java.lang.String homeRegion()
public @Nullable java.util.Set<java.lang.String> accessibleRegions()
public boolean restrictWriterToHomeRegion()
public boolean restrictReaderToHomeRegion()
public boolean enableGwf()
public boolean isInAccessibleRegion(HostSpec host)
public boolean isInHomeRegion(HostSpec host)
public void addSnapshotState(java.util.List<Pair<java.lang.String,java.lang.Object>> state)