public class LimitlessRouterServiceImpl extends java.lang.Object implements LimitlessRouterService
| Modifier and Type | Field and Description |
|---|---|
protected static long |
CACHE_CLEANUP_NANO |
protected static java.util.Map<java.lang.String,java.util.concurrent.locks.ReentrantLock> |
forceGetLimitlessRoutersLockMap |
protected static SlidingExpirationCacheWithCleanupThread<java.lang.String,java.util.List<HostSpec>> |
limitlessRouterCache |
protected LimitlessRouterMonitorInitializer |
limitlessRouterMonitorInitializer |
protected static SlidingExpirationCacheWithCleanupThread<java.lang.String,LimitlessRouterMonitor> |
limitlessRouterMonitors |
static AwsWrapperProperty |
MONITOR_DISPOSAL_TIME_MS |
protected PluginService |
pluginService |
protected LimitlessQueryHelper |
queryHelper |
| Constructor and Description |
|---|
LimitlessRouterServiceImpl(@NonNull PluginService pluginService) |
LimitlessRouterServiceImpl(@NonNull PluginService pluginService,
LimitlessRouterMonitorInitializer limitlessRouterMonitorInitializer,
LimitlessQueryHelper queryHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
establishConnection(LimitlessConnectionContext context) |
protected java.util.List<HostSpec> |
getLimitlessRouters(java.lang.String clusterId,
java.util.Properties props) |
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 long CACHE_CLEANUP_NANO
protected static final java.util.Map<java.lang.String,java.util.concurrent.locks.ReentrantLock> forceGetLimitlessRoutersLockMap
protected final PluginService pluginService
protected final LimitlessQueryHelper queryHelper
protected final LimitlessRouterMonitorInitializer limitlessRouterMonitorInitializer
protected static final SlidingExpirationCacheWithCleanupThread<java.lang.String,LimitlessRouterMonitor> limitlessRouterMonitors
protected static final SlidingExpirationCacheWithCleanupThread<java.lang.String,java.util.List<HostSpec>> limitlessRouterCache
public LimitlessRouterServiceImpl(@NonNull PluginService pluginService)
public LimitlessRouterServiceImpl(@NonNull PluginService pluginService, LimitlessRouterMonitorInitializer limitlessRouterMonitorInitializer, LimitlessQueryHelper queryHelper)
public void establishConnection(LimitlessConnectionContext context) throws java.sql.SQLException
establishConnection in interface LimitlessRouterServicejava.sql.SQLExceptionprotected java.util.List<HostSpec> getLimitlessRouters(java.lang.String clusterId, java.util.Properties props)
protected void synchronouslyGetLimitlessRoutersWithRetry(LimitlessConnectionContext context) throws java.sql.SQLException
java.sql.SQLExceptionprotected void synchronouslyGetLimitlessRouters(LimitlessConnectionContext context) throws java.sql.SQLException
java.sql.SQLExceptionpublic void startMonitoring(@NonNull HostSpec hostSpec, @NonNull java.util.Properties props, int intervalMs)
startMonitoring in interface LimitlessRouterService