public class GdbSimpleReadWriteSplittingPlugin extends SimpleReadWriteSplittingPlugin
gdbSimpleReadWriteSplitting): routes on setReadOnly between the
configured write/read endpoints, while applying the Global Database region rules and Global Write
Forwarding to the write endpoint. Region configuration is held by GdbSettings.SRW_CONNECT_RETRY_INTERVAL_MS, SRW_CONNECT_RETRY_TIMEOUT_MS, SRW_READ_ENDPOINT, SRW_WRITE_ENDPOINT, VERIFY_INITIAL_CONNECTION_TYPE, VERIFY_NEW_SRW_CONNECTIONSALLOW_STATEMENT_RECREATION_ON_CONNECTION_SWITCH, ASSUME_WRITE_TRANSACTION, CACHED_READER_KEEP_ALIVE_TIMEOUT, helpers, hostListProviderService, inReadWriteSplit, isReaderConnFromInternalPool, isWriterConnFromInternalPool, LOAD_BALANCING_INCLUDE_WRITER, pluginService, properties, QUERY_LEVEL_LOAD_BALANCING, readerCacheItem, readerHostSpec, writerConnection, writerHostSpec| Modifier | Constructor and Description |
|---|---|
|
GdbSimpleReadWriteSplittingPlugin(PluginService pluginService,
java.util.Properties properties) |
protected |
GdbSimpleReadWriteSplittingPlugin(PluginService pluginService,
java.util.Properties properties,
RwSplitHelpers helpers)
Constructor for subclasses that supply their own helper assembly.
|
| Modifier and Type | Method and Description |
|---|---|
protected static RwSplitHelpers |
gdbEndpointHelpers(java.util.Properties props,
RoutingSignal routingSignal,
SwitchGate switchGate)
Shared endpoint-based Global Database assembly builder, parameterized by routing signal and
switch gate so the SQL-routed variant can reuse it.
|
protected static RwSplitHelpers |
gdbSimple(java.util.Properties props)
Builds the endpoint-based Global Database assembly with
setReadOnly routing. |
endpointHelpers, simplebindReader, bindWriter, closeReaderConnectionIfIdle, closeWriterConnectionIfIdle, connect, connect, currentConnection, currentHostSpec, enterReadWriteSplit, execute, getReaderConnection, getSnapshotState, getSubscribedMethods, getWriterConnection, hostListProviderService, initHostProvider, isConnectionUsable, isInReadWriteSplit, isReaderFromPool, isWriterFromPool, logAndThrow, logAndThrow, markReaderFromPool, markWriterFromPool, notifyConnectionChanged, pluginService, properties, readerConnection, readerHostSpec, readerLoadBalancer, releaseResources, setWriterHostSpec, switchCurrentConnectionTo, writerConnection, writerHostSpecacceptsStrategy, forceConnect, getHostSpecByStrategy, getHostSpecByStrategy, notifyNodeListChangedpublic GdbSimpleReadWriteSplittingPlugin(PluginService pluginService, java.util.Properties properties)
protected GdbSimpleReadWriteSplittingPlugin(PluginService pluginService, java.util.Properties properties, RwSplitHelpers helpers)
protected static RwSplitHelpers gdbSimple(java.util.Properties props)
setReadOnly routing.protected static RwSplitHelpers gdbEndpointHelpers(java.util.Properties props, RoutingSignal routingSignal, SwitchGate switchGate)
EndpointWriterHostRefresher) so the GdbWriterResolver can evaluate its region
for accessible-region / home-region rules and Global Write Forwarding.