public class LimitlessRouterServiceImpl extends java.lang.Object implements LimitlessRouterService
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map<java.lang.String,java.util.concurrent.locks.ReentrantLock> |
forceGetLimitlessRoutersLockMap |
static AwsWrapperProperty |
MONITOR_DISPOSAL_TIME_MS |
protected static java.util.Set<MonitorErrorResponse> |
monitorErrorResponses |
protected PluginService |
pluginService |
protected LimitlessQueryHelper |
queryHelper |
protected FullServicesContainer |
servicesContainer |
| Constructor and Description |
|---|
LimitlessRouterServiceImpl(@NonNull FullServicesContainer servicesContainer,
@NonNull LimitlessQueryHelper queryHelper,
@NonNull java.util.Properties props) |
LimitlessRouterServiceImpl(@NonNull FullServicesContainer servicesContainer,
@NonNull java.util.Properties props) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache() |
void |
establishConnection(LimitlessConnectionContext context) |
protected java.util.List<HostSpec> |
getLimitlessRouters(java.lang.String clusterId) |
protected boolean |
isLoginException(java.lang.Throwable throwable) |
void |
startMonitoring(@NonNull HostSpec hostSpec,
@NonNull java.util.Properties props,
int intervalMs) |
protected void |
synchronouslyGetLimitlessRouters(LimitlessConnectionContext context) |
protected void |
synchronouslyGetLimitlessRoutersWithRetry(LimitlessConnectionContext context) |
public static final AwsWrapperProperty MONITOR_DISPOSAL_TIME_MS
protected static final java.util.Map<java.lang.String,java.util.concurrent.locks.ReentrantLock> forceGetLimitlessRoutersLockMap
protected static final java.util.Set<MonitorErrorResponse> monitorErrorResponses
protected final FullServicesContainer servicesContainer
protected final PluginService pluginService
protected final LimitlessQueryHelper queryHelper
public LimitlessRouterServiceImpl(@NonNull FullServicesContainer servicesContainer, @NonNull java.util.Properties props)
public LimitlessRouterServiceImpl(@NonNull FullServicesContainer servicesContainer, @NonNull LimitlessQueryHelper queryHelper, @NonNull java.util.Properties props)
public void establishConnection(LimitlessConnectionContext context) throws java.sql.SQLException
establishConnection in interface LimitlessRouterServicejava.sql.SQLExceptionprotected java.util.List<HostSpec> getLimitlessRouters(java.lang.String clusterId)
protected void synchronouslyGetLimitlessRoutersWithRetry(LimitlessConnectionContext context) throws java.sql.SQLException
java.sql.SQLExceptionprotected void synchronouslyGetLimitlessRouters(LimitlessConnectionContext context) throws java.sql.SQLException
java.sql.SQLExceptionprotected boolean isLoginException(java.lang.Throwable throwable)
public void startMonitoring(@NonNull HostSpec hostSpec, @NonNull java.util.Properties props, int intervalMs)
startMonitoring in interface LimitlessRouterServicepublic static void clearCache()